Readonly
nameThe name of the collection.
Search for documents in this collection using the provided query string.
The returned cursor operation can be used to chain operations on the resulting document set.
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"
.
Generates a WriteTransactionPendingIDSpecificOperation with the provided document ID.
The returned object can be used to find and return the document. It can also be used to update, remove or evict the document.
The ID of the document to find.
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.
Optional
options: UpsertOptions
Represents a collection of a Ditto store that is used in the context of a write transaction.
Supports most of a regular collection's functionality but cannot be subscribed or live queried and can not be used to create attachments.
Create a
WriteTransactionCollection
by starting a WriteTransaction and using itsscoped
method.