0 votes
in MongoDB by

______ can be used to check if the connected node is primary or not?

(1)rs.status()
(2)db.isMaster()
(3)rs.conf()
(4)rs.initiate()

1 Answer

0 votes
by

Answer:-(2)db.isMaster()

...