Make predicate syntax more concise
Closed this issue · 0 comments
fxnn commented
Currently, predicates work like
where: {
allof: [{
field: Message,
contains: some text
}, {
field: Message,
matches: '%{SOME_PATTERN}'
}]
}
This could be made a lot more concise by removing the "field" key and mapping fields to conditions instead:
where: {
Message: {contains: some text, matches: '%{SOME_PATTERN}'},
not: {Message: {matches: '%{ANOTHER_PATTERN}'}}
}
This of course is at the expense of prohibiting the custom fields not
, allof
, anyof
. Guess we can live with that.