When I ask for all snapshots in a given timeframe where the previous State value of a Task object is less than "Completed", I get zero results. However, if I switch around the inequality to greater than "Completed", I get the results I expected. I would have assumed that the states "Defined" and "In-Progress" were less than "Completed".
_TypeHierarchy:"Task",
"_PreviousValues.State":{$lt: "Completed"},
State: "Completed",
The above query returns 0 results for a specified time range. But the query below returns 4137 results for the same time range (note, the only difference is the switch in inequalities from less than to greater than):
_TypeHierarchy:"Task",
"_PreviousValues.State":{$gt: "Completed"},
State: "Completed",