7 months ago
Hey i had created a project with mongodb - but seems like it requires a replica set.
So i started fresh created a new project and used the template for creating the replica set.
How do i now connect this replica set to my primary mongodb instance?
0 Replies
7 months ago
the same way you connect to a single instance, just use the first node
and if i try to connect with compass even with direct connection enabled it only gives me read access
7 months ago
it does have a public url though
7 months ago
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
7 months ago
7 months ago
that info icon means its public
7 months ago
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) ?
@Brody 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=true
this to my conection string everything works fine
7 months ago
awsome!
7 months ago
!s
Status changed to Solved brody • 7 months ago