-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
new Date()
in aggregation node.js
#9116
Comments
Thanks for opening this issue!
|
Please test with Parse Server 7, the best would be to add a PR with a failed test. We only fix security bugs in Parse Server 6. |
I tested in Parse Server |
If you remove the date match, then you get the same output on both sides? Did you try |
Yes
I tried this method as below, but it didn't work ! {
$match: {
$or: [
{
"klk.exp": {
$gt: {$toDate: new Date()},
},
},
],
},
}, |
Could you write a failing test and submit a PR? The pipeline should be as simple as possible. |
What do I expect in this test? |
Just could just add the necessary data to the DB to replicate the issue. You expect the query response to be what it should return. |
New Issue Checklist
Issue Description
Steps to reproduce
I have an Aggregation in mongo shell that works fine.
But it doesn't output anything in node.js !
I think there is a problem in
new Date()
.Actual Outcome
Nothing is output !
Expected Outcome
It should output like the image above
Environment
Server
6.3.1
and7.0.0
Windows
Database
MongoDB
7.0.8
Client
API
n/a
Logs
n/a
The text was updated successfully, but these errors were encountered: