MCPcopy
hub / github.com/mongodb/node-mongodb-native / constructor

Method constructor

src/operations/run_command.ts:40–45  ·  view source on GitHub ↗
(namespace: MongoDBNamespace, command: Document, options: RunCommandOptions)

Source from the content-addressed store, hash-verified

38 override options: RunCommandOptions;
39
40 constructor(namespace: MongoDBNamespace, command: Document, options: RunCommandOptions) {
41 super(options);
42 this.command = command;
43 this.options = options;
44 this.ns = namespace.withCollection('$cmd');
45 }
46
47 override get commandName() {
48 return 'runCommand' as const;

Callers

nothing calls this directly

Calls 1

withCollectionMethod · 0.80

Tested by

no test coverage detected