Removes this object from the collection. Returns false when _id of this is not set.
Inserts or updates an existing value.
Start of an aggregation call. Returns a pipeline with typesafe functions for modifying the pipeline and running it at the end.
Returns the count of documents in this collection matching this query.
Returns the count of documents in this collection.
Drops the entire collection and all indices in the database.
Finds one or more elements using a query.
Queries all elements from the collection.
Queries all elements from the collection as range.
Finds one element with the object id id.
Finds one element with the hex id id.
Finds one element using a query.
Tries to find one document in the collection.
Finds one or more elements using a query as range.
Deletes one or any amount of documents matching the selector based on the flags.
Removes all documents from this collection.
Tries to find a document by the _id field and returns a Nullable which isNull if it could not be found. Otherwise it will be the document wrapped in the nullable.
Tries to find a document in this collection. It will return a Nullable which isNull if the document could not be found. Otherwise it will be the document wrapped in the nullable.
Updates a document.
Updates a document or inserts it when not existent. Shorthand for update(..., UpdateFlags.upsert)
Mixin for functions for interacting with Mongo collections.