Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/model/src/main.ts>Model#update

model based mongo for deno
Latest
method Model.prototype.update
import { Model } from "https://deno.land/x/model@v1.2/src/main.ts";

Parameters

filter: Filter<Schema>
document: Partial<Schema> & Bson.Document
optional
options: FindOptions & { multiple?: true; }

Returns

Promise<ObjectId[]>

Parameters

filter: Filter<Schema>
document: Partial<Schema> & Bson.Document
optional
options: FindOptions & { multiple?: false; }

Returns

Promise<ObjectId | unknown>