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

Error: cannot parse javascript object: ") } }" #241

Open
OKNoah opened this issue Jan 20, 2016 · 1 comment
Open

Error: cannot parse javascript object: ") } }" #241

OKNoah opened this issue Jan 20, 2016 · 1 comment

Comments

@OKNoah
Copy link

OKNoah commented Jan 20, 2016

I get this error when I do this query:

{ 'events.type': 'BANIP', 'events.expires': { $lte: new Date() } }

But I don't get any error when I do the same in the mongo terminal.

@freshfx
Copy link

freshfx commented Jan 26, 2016

try this

{ 'events.type': 'BANIP', 'events.expires': { $lte: { $date: <timestamp> } } }

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