Skip to main content
Module

x/typeorm/src/index.ts>MongoEntityManager#insertMany

Forked from https://github.com/typeorm/typeorm
Latest
method MongoEntityManager.prototype.insertMany
Re-export
import { MongoEntityManager } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Inserts an array of documents into MongoDB.

Parameters

entityClassOrName: ObjectType<Entity> | EntitySchema<Entity> | string
docs: ObjectLiteral[]
optional
options: CollectionInsertManyOptions

Returns

Promise<InsertWriteOpResult>