I'm using a replicaset with 3 nodes. Node primary with name n1 and port 27018, secondaries n2 port 27019 and n3 por 27020.
I would like to switch to any secondady node from primary. I've tried with mongo -host n2 -port 27019 but not work for me returns: "uncaught exception: SyntaxError: unexpected token: identifier : @(shell):1:12"
There is another way to do it? I looked in the documentation but I didn't found nothing
Thanks