I want to select all the documents in a collection that have 'age' property greater than a given age value.
Not working,
age: {
$gt: given_age_value
}
Working fine,
age: {
$gt: +given_age_value
}
What difference does the plus sign make? I can't find it in docs.