Methods add User add User( username: string ) : Promise < Document > add User( username: string , callback: Callback < Document > ) : void add User( username: string , password: string ) : Promise < Document > add User( username: string , password: string , callback: Callback < Document > ) : void add User( username: string , options: AddUserOptions ) : Promise < Document > add User( username: string , options: AddUserOptions , callback: Callback < Document > ) : void add User( username: string , password: string , options: AddUserOptions ) : Promise < Document > add User( username: string , password: string , options: AddUserOptions , callback: Callback < Document > ) : void Parameters Returns Promise < Document > Parameters Returns void Parameters username: string password: string Returns Promise < Document > Parameters username: string password: string Returns void Parameters Returns Promise < Document > Parameters Returns void Parameters username: string password: string Returns Promise < Document > Parameters username: string password: string Returns void build Info Returns Promise < Document > Parameters Returns void Parameters Returns Promise < Document > Parameters Returns void command Parameters Returns Promise < Document > Parameters Returns void Parameters Returns Promise < Document > Parameters Returns void list Databases Parameters Returns void Parameters Parameters Returns void ping Returns Promise < Document > Parameters Returns void Parameters Returns Promise < Document > Parameters Returns void remove User Parameters Returns Promise < boolean > Parameters username: string callback: Callback < boolean > Returns void Parameters Returns Promise < boolean > Parameters username: string callback: Callback < boolean > Returns void repl Set Get Status Returns Promise < Document > Parameters Returns void Parameters Returns Promise < Document > Parameters Returns void server Info Returns Promise < Document > Parameters Returns void Parameters Returns Promise < Document > Parameters Returns void server Status Returns Promise < Document > Parameters Returns void Parameters Returns Promise < Document > Parameters Returns void validate Collection Parameters Returns Promise < Document > Parameters Returns void Parameters Returns Promise < Document > Parameters Returns void Legend Constructor Property Method Accessor Inherited constructor Inherited property Inherited method Inherited accessor Constructor Property Method Private property Private method Static property Static method Settings Theme OS Light Dark
The Admin class is an internal class that allows convenient access to the admin functionality and commands for MongoDB.
ADMIN Cannot directly be instantiated