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

db.ObjectId does not work #40

Closed
jagdishuc opened this issue Feb 25, 2013 · 0 comments
Closed

db.ObjectId does not work #40

jagdishuc opened this issue Feb 25, 2013 · 0 comments

Comments

@jagdishuc
Copy link

I experienced this error several times when using the db.ObjectId() function,

I finally managed to resolve it by changing the index.js in mongojs module from

that.ObjectId = function(id) {
return new mongodb.BSONNative.ObjectID(id);
};

to

that.ObjectId = function(id) {
return new mongodb.BSONPure.ObjectID(id);
};

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

1 participant