Retrieve Documents based on provided query parameters. It recommended to use CompendiumCollection#getDocuments or CompendiumCollection#getIndex rather than calling this method directly.
The Document class definition
Parameters of the get operation
Optional
user: BaseUserThe requesting User
An array of retrieved Document instances or index objects
Create new Documents using provided data and context. It is recommended to use Document.createDocuments or Document.create rather than calling this method directly.
The Document class definition
Parameters of the create operation
Optional
user: BaseUserThe requesting User
An array of created Document instances
Update Documents using provided data and context. It is recommended to use Document.updateDocuments or Document#update rather than calling this method directly.
The Document class definition
Parameters of the update operation
Optional
user: BaseUserThe requesting User
An array of updated Document instances
Delete Documents using provided ids and context. It is recommended to use foundry.abstract.Document.deleteDocuments or foundry.abstract.Document#delete rather than calling this method directly.
The Document class definition
Parameters of the delete operation
Optional
user: BaseUserThe requesting User
An array of deleted Document instances
Protected
_logProtected
_logProtected
Log a database operation for an embedded document, capturing the action taken and relevant IDs
The action performed
The document type
The documents modified
Optional
__namedParameters: string = {}Protected
_logPrivate
#configureValidate and configure the parameters of the get operation.
The requested operation
Private
#configureValidate and configure the parameters of the create operation.
The requested operation
Private
#configureValidate and configure the parameters of the update operation.
The requested operation
Private
#configureValidate and configure the parameters of the delete operation.
The requested operation
Private
#configurePrivate
#logDetermine a string suffix for a log message based on the parent and/or compendium context.
An abstract base class extended on both the client and server which defines how Documents are retrieved, created, updated, and deleted.
Alias
foundry.abstract.DatabaseBackend
Abstract