I am querying from mongoose to get data filter by date,
return dbService.queryaggregate(eventModel, {
"$and": [{
"$text": {
"$search": query
}
},
countryCondition,
{'date.start':{$gt : Date.now()}}
]
}, 5);
in the db i have a datefield with value as 2017-04-30T13:39:09.485Z
, the above query does not return any data.
How can i convert Date.now()
to support the above date?
via face turn
No comments:
Post a Comment