Skip to main content
Module

x/typeorm/src/index.ts>Connection#getMongoRepository

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

Gets mongodb-specific repository for the given entity class or name. Works only if connection is mongodb-specific.

Parameters

target: ObjectType<Entity> | EntitySchema<Entity> | string

Returns

MongoRepository<Entity>