Answer the question
In order to leave comments, you need to log in
How to get the value of a field when selecting?
Whether prompt it is possible as that to learn value of a field in the document at sampling in the condition.
I have some numeric settings in my config
config.basic.i = 10; //10 минут
config.average.i = 20; // 20 минут
updateAt < new Date(new Date().setMinutes(new Date().getMinutes()-config['$field'].i))
Coll.findOne({
updateAt: {
$lte: new Date(new Date().setMinutes(new Date().getMinutes()-config['$field'].i))
}
})
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