Open natenho opened 1 year ago
Hey @natenho, it looks like that's a limitation in the underlying library. I raised an issue about it here: https://github.com/PaesslerAG/jsonpath/issues/35 and I'll wait for a reply from the maintainer(s) before trying to send them a PR.
As a workaround, I'd consider using bloblang for such queries: root."text_objects" = this.body.filter(x -> x.type == 1)
.
Expected
Reference: https://www.benthos.dev/docs/guides/bloblang/methods/#examples-92
Actual
A curious behavior is that when using operators like >, <, >= or <=, the comparison works as expected:
So the current workaround for equality is to use
>= && <=