Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method Collection.prototype.insertMany
import { Collection } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";

Parameters

docs: InsertDocument<T>[]
optional
options: InsertOptions

Returns

Promise<{ insertedIds: (Bson.ObjectId | Required<InsertDocument<T>>["_id"])[]; insertedCount: number; }>