- Reference >
mongoShell Methods >- Replication Methods >
- rs.conf()
rs.conf()¶
On this page
Definition¶
-
rs.conf()¶ Returns a document that contains the current replica set configuration.
Important
mongoShell MethodThis page documents a
mongomethod. This is not the documentation for database commands or language-specific drivers, such as Node.js. To use the database command, see thereplSetGetConfigcommand.For MongoDB API drivers, refer to the language-specific MongoDB driver documentation.
Output Example¶
The following document provides a representation of a replica set configuration document. The configuration of your replica set may include only a subset of these settings:
For description of the configuration settings, see Replica Set Configuration.
-
rs.config()¶ rs.config()is an alias ofrs.conf().