mongo-mock icon indicating copy to clipboard operation
mongo-mock copied to clipboard

MongoClient.connect: url without database defaults to admin db

Open philippevk opened this issue 6 years ago • 2 comments

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

philippevk avatar Nov 09 '18 20:11 philippevk

Is this closed?

zardilior avatar Jun 10 '19 20:06 zardilior

Is this closed?

Nah, I might just update the pull request myself

angelo-hub avatar Nov 18 '19 19:11 angelo-hub