Skip to content
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

Insert with 'bypassCollection2: true' throws an exception #290

Closed
art-reddy opened this issue Dec 15, 2015 · 1 comment
Closed

Insert with 'bypassCollection2: true' throws an exception #290

art-reddy opened this issue Dec 15, 2015 · 1 comment

Comments

@art-reddy
Copy link

Hi!

When I insert a document like that

collection.insert(doc, {bypassCollection2: true})

I get an exception in console

Exception in Mongo write: TypeError: object is not a function
  at packages/mongo/mongo_driver.js:322:1
  at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1)

Document in fact is inserted successfully but I can't use callback function as a third parameter. So there is probably some mismatch when parameters are passed to original Mongo insert function.

@aldeed
Copy link
Collaborator

aldeed commented Dec 15, 2015

Oh, yeah, that's a bug. Need to remove the options. I will fix.

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

No branches or pull requests

2 participants