Ditto Collection
A reference to a collection in a DittoStore.
Functions
Trigger an attachment to be downloaded locally to the device and observe its progress as it does so.
Generates a DittoPendingCursorOperation with the provided query that can be used to find the documents matching the query at a point in time or you can chain a call to observe
, observeLocal
, or subscribe
if you want to get updates about documents matching the query as they occur.
Generates a DittoPendingCursorOperation that can be used to find all documents in the collection at a point in time or you can chain a call to observe
, observeLocal
, or subscribe
if you want to get updates about documents in the collection over time.
Generates a DittoPendingIDSpecificOperation with the provided document ID that can be used to find the document at a point in time or you can chain a call to observe
, observeLocal
, or subscribe
if you want to get updates about the document over time.
Inserts a new document into the collection and returns the document's ID.
Inserts a new document into the collection and returns the document's ID.
Creates a new attachment, which can then be inserted into a document.
Inserts a new document into the collection and returns its ID. If the document already exists, the behavior is determined by the given writeStrategy
.