How can I query timestamp fields in NoSQL.
I would like a query like:
{ "when": { "$gte": new Date("2016-06-01"), "$lt": new Date("2016-07-02") }}
This is OK in MongoDB, but not in NoSQL.
Thanks for your help !
Hi Eric,
Try this syntax in your find query.
{ "when": { "$gte": {"$date": "2016-06-01T00:00:00.000Z"}, "$lte": {"$date": "2016-07-02T00:00:00.000Z"}}}
Let me know if this works for you
-Pádraig
Thanks a lot for advice, works perfectly :)
Best
Eric Moncada
How can I query timestamp fields in NoSQL.
I would like a query like:
{ "when": { "$gte": new Date("2016-06-01"), "$lt": new Date("2016-07-02") }}
This is OK in MongoDB, but not in NoSQL.
Thanks for your help !
Hi Eric,
Try this syntax in your find query.
{ "when": { "$gte": {"$date": "2016-06-01T00:00:00.000Z"}, "$lte": {"$date": "2016-07-02T00:00:00.000Z"}}}
Let me know if this works for you
-Pádraig
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Eric,
Try this syntax in your find query.
{ "when": { "$gte": {"$date": "2016-06-01T00:00:00.000Z"}, "$lte": {"$date": "2016-07-02T00:00:00.000Z"}}}
Let me know if this works for you
-Pádraig
1 person likes this
Eric Moncada
Thanks a lot for advice, works perfectly :)
Best
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics