Answer the question
In order to leave comments, you need to log in
How to find data by one or more matches?
There are documents like
{
count: {
day: {
s: 10,
g: 0
}
}
}
Users
.findOne({
$or: [{
'count.day.s': {
$gt: 0
},
'count.day.g': {
$gt: 0
}
}]
}, (e, d) => {
console.log(d); // null
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question