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
I have modified the mingo.js from the distribution directory to support the $expr operator.
This operator is introduced in Mongo 3.6 and it allows to use expression (such as arithmetic operations) in a query. It also allows comparing 2 fields against eachothr.
The "$expr" offers advantages over "$where" and it seems easy to implement from the building blocs already available in your implementation. I just had to modify a few lines (Do find "$expr").
I'm not sure how to build the project but it would be great if you can add this feature. Use the code in my attachment as reference.
Thanks in advance
The text was updated successfully, but these errors were encountered:
mingo.zip
I have modified the mingo.js from the distribution directory to support the $expr operator.
This operator is introduced in Mongo 3.6 and it allows to use expression (such as arithmetic operations) in a query. It also allows comparing 2 fields against eachothr.
Example:
{"$expr":{"$gt":[{"$multiply":["$value1", 2]}, "$value2"]}}
The "$expr" offers advantages over "$where" and it seems easy to implement from the building blocs already available in your implementation. I just had to modify a few lines (Do find "$expr").
I'm not sure how to build the project but it would be great if you can add this feature. Use the code in my attachment as reference.
Thanks in advance
The text was updated successfully, but these errors were encountered: