Skip to main content
Module

x/mongo/mod.ts>Collection#insertMany

MongoDB driver for Deno
Extremely Popular
Go to Latest
method Collection.prototype.insertMany
import { Collection } from "https://deno.land/x/mongo@v0.31.1/mod.ts";

Parameters

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

Returns

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