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()

Related questions

+1 vote
asked Apr 17, 2021 in MongoDB by rajeshsharma
0 votes
asked Nov 21, 2021 in MongoDB by DavidAnderson
...