Construct a new Document with the collections schema and any provided data
Data to be assigned to the document schema
Reference to the parent collection
Object for any plugin related data
Reference to the parent collection
Debugger variable
Document id
Reference to indexed data for repeated deep data matching
Object with functions for handling plugin data
Delete the data object of a specific plugin
Plugin name to delete data of
Get the data object from a specific plugin
Plugin name to get data of
Data from the plugin
Set/replace the data object for a plugin
Plugin name to set data to
Data to replace the plugin data with
The data of the document as provided by the storage provider
Duplicate this document, making mutations to it not affect the original
Populate the document with another document that matches the query. This will return a copy of the document and not a reference to the original.
It's recommended you use the provided
populate (doc.populate(...)
) function instead.
Options for the populate. Things like the target field and query don't have to be set
Delete this document from the db
Emit an event to the attached database
Event to emit
Populate down a tree of documents based on the provided MemsPL populateQuery
MemsPL population query
Filter unspecified keys from the populated documents
Cloned version of this document
Set the value of a key in the doc to a specified value.
This should only be done on shallow key values, lest you want keys like 'key1.key2.key3' as object keys in your data
Key to set the value of
Data to set to the afformentioned key
Returns nothing
Set the root of the data object.
This will completely replace the data object
Data to set
Returns a simplified view
Populate a tree of documents. It's recommended you use the provided
populate (doc.populate(...)
) function instead.
Options for making a tree from the provided document
A cloned version of this doc that has the data field formatted into a tree
Generated using TypeDoc
Class for creating structured documents