Module dittolive_ditto::store::collection::document
source · Expand description
Documents are containers for the data you put in a
[Collection](super::collection::Collection).
Documents exist in two ways:
DittoDocumentis a static view of the content of a document.DittoMutDocumentwhich allows to update the content of a document.
Traits
DittoDocuments can be obtained via calls to the variousexecmethodsor via the variousobserve_localmethods, exposed via the objects returned from calls toCollection::find_by_id,Collection::find, andCollection::find_all.DittoMutDocuments can be obtained withinupdatecalls (PendingIdSpecificOperation::updateorPendingCursorSpecificOperation::update).