An Array of application references which will be automatically updated when the collection content changes
Record the set of document ids where the Document was not initialized because of invalid source data
Static
documentThe base Document type which is contained within this DocumentCollection
Static
Private
#dataThe cache of search fields for each data model
The Collection class name
Obtain a temporary Document instance for a document id which currently has invalid source data.
A document ID with invalid source data.
Optional
options: { Additional options to configure retrieval.
Throw an Error if the requested ID is not in the set of invalid IDs for this collection.
An in-memory instance for the invalid Document
If strict is true and the requested ID is not in the set of invalid IDs for this collection.
Get an element from the DocumentCollection by its ID.
The ID of the Document to retrieve.
Optional
options: { Additional options to configure retrieval.
Throw an Error if the requested Document does not exist.
Allow retrieving an invalid Document.
If strict is true and the Document cannot be found.
Find all Documents which match a given search term using a full-text search against their indexed HTML fields and their name. If filters are provided, results are filtered to only those that match the provided values.
An object configuring the search
A case-insensitive search string
An array of filters to apply
An array of document IDs to exclude from search results
Update all objects in this DocumentCollection with a provided transformation. Conditionally filter to only apply to Entities which match a certain condition.
An object of data or function to apply to all matched objects
A function which tests whether to target each object
Optional
options: object = {}Additional options passed to Document.updateDocuments
An array of updated data once the operation is complete
Internal
Follow-up actions to take when a database operation modifies Documents in this DocumentCollection.
The database action performed
The array of modified Documents
The result of the database operation
Database operation details
The User who performed the operation
Private
_initializeStatic
getGet the searchable fields for a given document or index, based on its data model
The document type name
Optional
documentSubtype: string = ""The document subtype name
Optional
isEmbedded: boolean = falseWhether the document is an embedded object
The dot-delimited property paths of searchable fields
An abstract subclass of the Collection container which defines a collection of Document instances.
Abstract
Param: data
An array of data objects from which to create document instances