Skip to main content
The Deno 2 Release Candidate is here
Learn more
Very Popular
Go to Latest
method Collection.prototype.insertMany
import { Collection } from "https://deno.land/x/mongo@v0.31.2/src/collection/collection.ts";

Parameters

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

Returns

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