-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
native mongo driver throws warnings #54
Comments
Bumping this - I'm also finding it a bit annoying. The problem is that Mongo actively checks whether all of the options we pass it are legal, but we mingle our own options in with Mongo options. We have probably two options:
|
There's actually already a I agree that it'd be good to consistently use that. Definitely something to consider lumping into 1.0 breaking changes. Another approach, which is documented, is to pass a function that provides a Mongo client. That lets you re-use a client that you fully construct yourself, which is useful if you use Mongo in other places on the same server too. |
@ericyhwang even when you use this approach, Mongo complains that |
With the The second approach of a provider function gives you full control over how the Mongo client gets created and connected - here's the README example modified to add Mongo options:
|
Looks like Nate's already done most of the work for this, and we just need to remove the fallback |
original mongo driver throws warnings if we pass sharedb specific options, like allowAllQueries
it shows: the options [allowAllQueries] is not supported
The text was updated successfully, but these errors were encountered: