Answer the question
In order to leave comments, you need to log in
Sampling data from MongoDB by date and its absence?
Hi all!
From the view table
{
"start" : ISODate(),
"end" : ISODate()
}
Answer the question
In order to leave comments, you need to log in
$or: [
{end: null},
{end: {$gt: ISODate()}}
]
So far I've decided this way, is there a more elegant method?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question