You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.
Hello,
I have some problems with the query creation and i think the problems are related to the use of $elemMatch (here src/query.js).
My code is basically like this:
letquery={"date": {"$gte": "2015-05-05T00:00:00.000Z",// Not the string, the Date object"$lte": "2015-05-06T23:59:59.999Z"// Not the string, the Date object}};letresult=yield*query.find(query);
But if i enable the DEBUG i see the generated query is:
Pushed a change, which introduces a matches() method for $elemMatch usage and allow any object for where(), so any MongoDB operators can be used, in case they are not supported by Mongorito.
Thank you for posting this issue!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I have some problems with the query creation and i think the problems are related to the use of
$elemMatch
(here src/query.js).My code is basically like this:
But if i enable the
DEBUG
i see the generated query is:And i get no results while using the mongo console my query works.
The problem is related to the fact that
$elemMatch
works on array fields (see here)The text was updated successfully, but these errors were encountered: