Skip to content

MongoClient.connect: url without database defaults to admin db#87

Open
philippevk wants to merge 1 commit into
williamkapke:masterfrom
philippevk:master
Open

MongoClient.connect: url without database defaults to admin db#87
philippevk wants to merge 1 commit into
williamkapke:masterfrom
philippevk:master

Conversation

@philippevk

Copy link
Copy Markdown

In the current mongo-mock version, specifying a connect url without any database throws an error.

The mongo documentation says it should default to admin db: https://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html#basic-parts-of-the-url

@angelo-hub angelo-hub left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems good to me can you add a unit test for it?

@zardilior

Copy link
Copy Markdown

Is this closed?

@angelo-hub

Copy link
Copy Markdown
Collaborator

Is this closed?

Nah, I might just update the pull request myself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants