MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / dropCollection

Method dropCollection

packages/mongodb/src/MongoConnection.ts:152–154  ·  view source on GitHub ↗
(name: EntityName<AnyEntity>)

Source from the content-addressed store, hash-verified

150 }
151
152 async dropCollection(name: EntityName<AnyEntity>): Promise<boolean> {
153 return this.getDb().dropCollection(this.getCollectionName(name));
154 }
155
156 mapOptions(overrides: MongoClientOptions): MongoClientOptions {
157 const ret: MongoClientOptions = {};

Callers 3

dropMethod · 0.80

Calls 2

getDbMethod · 0.95
getCollectionNameMethod · 0.95

Tested by

no test coverage detected