MongoDB: db.serverCmdLineOpts() method
db.serverCmdLineOpts
The db.serverCmdLineOpts() method is used to return a document that reports on the arguments and configuration options used to start the mongod or mongos instance.
Syntax:
db.serverCmdLineOpts()
Example: MongoDB: db.serverCmdLineOpts() method
db.serverCmdLineOpts();
Output:
> db.serverCmdLineOpts(); { "argv" : [ "mongod" ], "parsed" : { }, "ok" : 1 }
Retrieve the restaurants data from here
Previous:
db.serverBuildInfo() method
Next:
db.serverStatus() method
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/mongodb/shell-methods/database/db-serverCmdLineOpts.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics