db.shutdownServer() db.shutdownServer() db. shutdownServer () Shuts down the current mongod or mongos process cleanly and safely. This operation fails when the current da...
db.setProfilingLevel() Definition Syntax Parameters Returns Behavior Examples Enable Profiler and Set Slow Operation Threshhold and Sample Rate Disable Profiler and Set Slow ...
db.serverCmdLineOpts() db.serverCmdLineOpts() db. serverCmdLineOpts () Wraps the getCmdLineOpts database command . Returns a document that reports on the arguments and conf...
db.resetError() db.resetError() db. resetError () Deprecated since version 1.6. Resets the error message returned by db.getPrevError orgetPrevError . Provides a wrapper...
db.printSlaveReplicationInfo() Definition Output db.printSlaveReplicationInfo() Definition db. printSlaveReplicationInfo () Returns a formatted report of the status of a ...
db.logout() db.logout() db. logout () Ends the current authentication session. This function has no effectif the current session is not authenticated. Note If you’re not lo...
db.isMaster() db.isMaster() db. isMaster () Returns a document that describes the role of the mongod instance. If the mongod is a member of a replica set , thenthe ismast...
db.getSiblingDB() Definition Example db.getSiblingDB() Definition db. getSiblingDB () ParameterTypeDescriptiondatabase stringThe name of a MongoDB database. Returns:A ...