I need to simply compare two numbers with each other, both in the same document. All rows have end times that are larger than their start times.
My question is are we even able to compare values in this fashion in a find query, if yes then what could be the cause of this not working?
mDB.collection("notifications").find({end_time: {$gt:"$start_time"}}).toArray()
I want to at all costs avoid running JS. Mongo version: 3.4.6-0