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

Method removeUser

src/db.ts:468–473  ·  view source on GitHub ↗

* Remove a user from a database * * @param username - The username to remove * @param options - Optional settings for the command

(username: string, options?: RemoveUserOptions)

Source from the content-addressed store, hash-verified

466 * @param options - Optional settings for the command
467 */
468 async removeUser(username: string, options?: RemoveUserOptions): Promise<boolean> {
469 return await executeOperation(
470 this.client,
471 new RemoveUserOperation(this, username, resolveOptions(this, options))
472 );
473 }
474
475 /**
476 * Set the current profiling level of MongoDB

Callers 6

auth.prose.test.tsFile · 0.45
cleanUpUsersFunction · 0.45

Calls 2

executeOperationFunction · 0.90
resolveOptionsFunction · 0.90

Tested by 1

cleanUpUsersFunction · 0.36