import { type FindAndModifyOptions } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";
Options for the findAndModify operation
Type Parameters
optional
T = DocumentProperties
optional
sort: DocumentControl the order in which documents are found. findAndModify only modifies the first document found, so controlling the sort order may ensure, that the right document is first
optional
update: UpdateFilter<T>The update to execute on the found document.
Either update or remove have to be specified
optional
fields: Documentthe fields to return.
optional
writeConcern: WriteConcernThe write concern to apply to the write operation
optional
collation: CollationOptionsThe collation options to apply to string handling (e.g. during sort)
optional
arrayFilters: Document[]Filters determining which elements to modify in an array, when modifying array values