#Need help connecting mongodb replica set
23 messages · Page 1 of 1 (latest)
Project ID: 6a1c0558-f3b6-48a5-8e82-0385da7fbc2b
6a1c0558-f3b6-48a5-8e82-0385da7fbc2b
the same way you connect to a single instance, just use the first node
i am not able to it doesn't have a public URL
and if i try to connect with compass even with direct connection enabled it only gives me read access
it does have a public url though
the templates comes with a public url
i am not able to find it - i am really sorry acting dumb would really appreciate a bit of handholding here
it connects but again only read access to it
if you see there is not add or + sign in here
ill deploy and see what happens
if there's a way maybe we can connect and you can just check on my existing project ?
Normally on a mongodb servie there's a "data" tab as well but this one doesn't have it - am i supposed to connect it to a primary node(create another mongodb) ?
@craggy lark i think i found the issue - i wasn't connecting to the primary node it worked now will import data connect to the app and check
it worked
Thanks so much for your help ser :))
Really appreciate it
So
- Finding the right Primary node
- adding
?authSource=admin&replicaSet=rs0&retryWrites=true&w=majority&directConnection=truethis to my conection string everything works fine
awsome!
!s