As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
e1 = { "date": "2016-04-25T23:20:28.129Z", "log": [ { "takenAt": "2016-04-25T23:20:28.129Z" } ], "_id": "571ea63c409b6011005bd95a", "_acl": { "creator": "some_creator" }, "_kmd": { "ect": "2016-04-25T23:20:28.158Z", "lmt": "2016-04-25T23:20:28.158Z" } }
Let's assume 'now' is "2016-04-25T23:30:00.000Z", and because of that, 'midnight' is "2016-04-25T00:00:00.000Z".
So because 'e.date' is "2016-04-25T23:20:28.129Z" and
I would expect that the query in 'findOneAsync' returns 'e'. But it returns null.
What I am actually doing is trying to update the 'log' property of an entity made today. If the entity doesn’t exist, we create it right away. We then save the changes (or store the new entity) with 'logs.saveAsync(d);'.
The problem is that when I run the code twice, the first time in the day the entity is created... and the second time a new entity is created, when I expect that 'findOneAsync' had found my first entity.
Carlos Molina Avendaño
Hi, I'm trying to query a collection by a 'date' property within two dates (the 'midnight' and 'now').
If I filter 'date' with a single operator ($lte or $gte) it find documents. But when I use both operators, $lte and $gte, it doesn't find any documents.
This is part of the code related to a custom endpoint.
The 'date' is stored as a ISO8601 string (for example, "2016-04-25T10:52:18.020Z"). Any help would be very appreciated.