x/denomongo_unittest_utils/deps.ts

Unittest utilities for deno_mongo
Latest
interface FindAndModifyOptions
import { type FindAndModifyOptions } from "https://deno.land/x/denomongo_unittest_utils@v0.5.3/deps.ts?s=FindAndModifyOptions";

Options for the findAndModify operation

Properties

optional
sort: Document
[src]

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>
[src]

The update to execute on the found document.

Either update or remove have to be specified

optional
remove: boolean
[src]

Remove the found document

optional
new: boolean
[src]

Return the new state after the update

optional
fields: Document
[src]

the fields to return.

optional
upsert: boolean
[src]

perform an upsert, i.e. update if a document matches, insert otherwise.

optional
bypassDocumentValidation: boolean
[src]

do not validate the document during the operation

optional
writeConcern: WriteConcern
[src]

The write concern to apply to the write operation

optional
collation: CollationOptions
[src]

The collation options to apply to string handling (e.g. during sort)

optional
arrayFilters: Document[]
[src]

Filters determining which elements to modify in an array, when modifying array values

optional
maxTimeMS: number
[src]

The maximum time of milliseconds the operation is allowed to take