littlebits / stream-sift

A minimal high-performance specification-backed stateful object matching engine
MIT License
1 stars 1 forks source link

Support match-all '*' semantic #1

Closed jasonkuhrt closed 9 years ago

jasonkuhrt commented 9 years ago

e.g.:

{input:'*'}

And to the extreme, something like this is possible though useless:

{"input":{"$or":[{"percent":{"$risesAboveOrEqual":78}},{"percent":{"$fallsBelow":78}},"*"]}}
jasonkuhrt commented 9 years ago

Once again:

We need a match-all semantic built into core:

foobar:
  morebar: "*"

* requires that the path to itself exists, but after that doesn't care what happens.