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:
DittoDocument
is a static view of the content of a document.DittoMutDocument
which allows to update the content of a document.
Traits
DittoDocument
s can be obtained via calls to the variousexec
methods
or via the variousobserve_local
methods, exposed via the objects returned from calls toCollection::find_by_id
,Collection::find
, andCollection::find_all
.DittoMutDocument
s can be obtained withinupdate
calls (PendingIdSpecificOperation::update
orPendingCursorSpecificOperation::update
).