import { type mongoose } from "https://deno.land/x/mongoose@8.6.4/types/models.d.ts";
const { UpdateOneModel } = mongoose;
Properties
filter: RootFilterQuery<TSchema>
The filter to limit the updated documents.
update: UpdateQuery<TSchema>
A document or pipeline containing update operators.
A set of filters specifying to which array elements an update should apply.
The index to use. If specified, then the query system will only consider plans using the hinted index.