When I connect to my Atlas Cluster M001 Shard is Secondary

Hello, how can I change the cluster Shard connnected to use primary instead of secondary?

I noticed that I cannot use any of the operators because always an error occurs like in the image below when I tried to list databases

What connect string you used?
SRV or long form(old style string)

1 Like

Hi @Gabrielly_Andrade,

Please use SRV type connection string and it will always connect you to the Primary node of the replica set.

You can find the connection string in your Atlas account.

~ Shubham