db.setLogLevel() Definition Behavior Examples Set Default Verbosity Level Set Verbosity Level for a Component db.setLogLevel() Definition db. setLogLevel () New in v...
db.printReplicationInfo() Definition Output Example Output Fields db.printReplicationInfo() Definition db. printReplicationInfo () Prints a formatted report of the repli...
db.hostInfo() db.hostInfo() db. hostInfo () Returns a document with information about the underlying systemthat the mongod or mongos runs on. Some of thereturned fields a...
db.getPrevError() db.getPrevError() db. getPrevError () Returns:A status document, containing the errors. Deprecated since version 1.6. This output reports all errors sin...
db.getLogComponents() Definition Output db.getLogComponents() Definition db. getLogComponents () New in version 3.0. Returns the current verbosity settings. The verbos...
db.getLastError() Definition Behavior Example db.getLastError() Definition db. getLastError (, ) Specifies the level of write concern for confirming the successof previ...
db.fsyncLock() Definition Behavior Example db.fsyncLock() Definition db. fsyncLock () Forces the mongod to flush all pending write operations todisk and locks the enti...
db.eval() Definition db.eval() Definition db. eval (function, arguments) Deprecated since version 3.0. Important Starting in version 4.2, MongoDB removes the eval com...