db.getCollection("mycollection").find(
{
"$expr":{
"$gt":["$updatedAt","$anotherTimestamp"]
}
}
)--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/o4fe5htnOs0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/167e1cd3-71ab-4823-935f-5cabef00d9e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
db.getCollection("mycollection").find(
{
"updatedAt":{$exists:true},
"anotherTimestamp":{$exists:true},
"$expr":{
"$gt":["$updatedAt","$anotherTimestamp"]
}
}
)