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

Method listDatabases

src/admin.ts:158–163  ·  view source on GitHub ↗

* List the available databases * * @param options - Optional settings for the command

(options?: ListDatabasesOptions)

Source from the content-addressed store, hash-verified

156 * @param options - Optional settings for the command
157 */
158 async listDatabases(options?: ListDatabasesOptions): Promise<ListDatabasesResult> {
159 return await executeOperation(
160 this.s.db.client,
161 new ListDatabasesOperation(this.s.db, { timeoutMS: this.s.db.timeoutMS, ...options })
162 );
163 }
164
165 /**
166 * Get ReplicaSet status

Calls 1

executeOperationFunction · 0.90

Tested by

no test coverage detected