DB name is not added to url with replica set #613
Answered
by
hasezoey
vytautas-pranskunas-
asked this question in
Q&A
-
Hello, I have this replica set configuration:
and i get uri with:
output is: |
Beta Was this translation helpful? Give feedback.
Answered by
hasezoey
Mar 2, 2022
Replies: 1 comment
-
this is currently not enabled by default, see comment tsdoc: TL;DR: by default no database is added to the URI, because of different parser implementations |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hasezoey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is currently not enabled by default, see comment tsdoc:
https://github.com/nodkz/mongodb-memory-server/blob/1154d10d861077e143125aaa401ac269d556c1cb/packages/mongodb-memory-server-core/src/MongoMemoryReplSet.ts#L304
TL;DR: by default no database is added to the URI, because of different parser implementations