Adds an expression-based index to the collection.
Optionaloptions: IndexOptions<T>Adds a uniqueness constraint derived from a document expression.
Optionaloptions: UniqueConstraintOptions<T>Counts documents in this query synchronously.
Optionalpredicate: FilterPredicate<T>Counts documents in this query.
Narrows this query to documents matching the predicate.
Optionalpredicate: FilterPredicate<T>Materializes documents matching the predicate.
Optionalpredicate: FilterPredicate<T>Finds one matching document, or rejects when none exists.
Finds and transforms one matching document.
Inserts documents in batches.
Optionaloptions: InsertManyOptionsClears collection documents; available in test environments.
Optionalmode: "fast" | "full"Returns whether any document matches a filter or predicate.
Optionalfilter: FilterPredicate<T>Sums values projected from matching documents.
OptionaldefaultValue: numberMaterializes this query synchronously.
Materializes this query as an array.
Deletes one matching document, returning whether a document was deleted.
Finds one matching document, if present.
Returns the first document, if present.
Returns the first document asynchronously, if present.
Updates matching documents and returns the modified documents.
Updates matching documents and returns the number of modified documents.
Optionaloptions: UpdateOptionsUpdates one matching document, rejecting when none exists.
Optionaloptions: UpdateOptionsOptionalautoAutomatically grants the named permissions for this collection.
OptionalexcludeOmits this collection from automatically generated Studio menus.
OptionalexcludeOmits this collection from Studio's global search.
OptionalmenuControls this collection's position in Studio menus.
OptionalmenuPlaces this collection beneath another collection in Studio menus.
A collection supplied by the compatible Kubator host. The open surface retains its generic item type so Kubator can recover model schemas.