import { type FindAndModifyOptions } from "https://deno.land/x/mongo@v0.31.1/src/types.ts";
Options for the findAndModify operation
Properties
Control 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
The collation options to apply to string handling (e.g. during sort)
Filters determining which elements to modify in an array, when modifying array values