Readonly
nameSearch for documents in this collection using the provided query string.
The query to run against the collection.
Optional
queryArgs: QueryArgumentsThese arguments replace placeholders in the provided query.
Convenience method, equivalent to calling find() and passing
the query "true"
.
Find documents given a specific ID.
Use the returned cursor instance to chain operations on the search result.
The document's identifier
Inserts a new document into the collection and returns its ID.
If the document already exists, the contents of both are merged by default.
You can change this by providing a different writeStrategy
via options
.
The content of the document to be inserted or updated. Must not contain any non-finite numbers (NaN, Infinity, -Infinity).
Change defaults for the behavior of the operation, such as the write strategy.
The name of the collection.