redgeoff/mson

Support for basic operators in template values

redgeoff opened this issue · 7 comments

To be able to support configurations like #183 in a more streamlined way, we can use operators like !, +, -, /, *, %, =, &, |

An alternative to this is to support a notation like mongo queries, which may be more declarative

The more I think about this, he more that I think we want to use mongodb-style queries so that it can more easily be customized by a UI in the future. The lib https://github.com/kofrasa/mingo, may help

Here is a POC using a MongoDB aggregation

Or, a POC for more specifically for negating a boolean.

And here is a POC that uses mingo that should work, but appears to be broken because of this bug

Implemented by #306. And, here is some documentation