You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be a can of worms, but it would be a very nice addition to this library. It would be nice to do a direct comparison on a record's fields with each other rather than only comparing a single column with a static value.
In SQL this functionality is trivial:
SELECT * from my_table WHERE points_total > points_used
Mongo provides the $expr operator for this purpose, which is a newer feature:
This allows finding all records that have points remaining without having to manually implement a points_remaining column. It's technically an "aggregation" functionality but since it's been made available in the find operation it could make sense to include here as well.
Thoughts?
The text was updated successfully, but these errors were encountered:
This may be a can of worms, but it would be a very nice addition to this library. It would be nice to do a direct comparison on a record's fields with each other rather than only comparing a single column with a static value.
In SQL this functionality is trivial:
Mongo provides the
$expr
operator for this purpose, which is a newer feature:This allows finding all records that have points remaining without having to manually implement a points_remaining column. It's technically an "aggregation" functionality but since it's been made available in the
find
operation it could make sense to include here as well.Thoughts?
The text was updated successfully, but these errors were encountered: