This is the query condition。visitedDate :type of date
const s = new Date('2017/3/1')
const e = new Date('2017/3/2')
const filter = [
{
$match: {
dataSource: 0,
visitedDate: {
$gte: s,
$lt: e
}
}
},
{
$limit: 10
}
]
I using the mongoose aggregate in node, return "[]". code:
model.aggregate(filter, (err, data) => {
if (err) {
return reject(err)
}
return resolve(data)
})
Why, what should i do?
via N.Aes
No comments:
Post a Comment