How do I Filter a Map in CEL? #375
Unanswered
stack123-afk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have the following JSON:
I want to select out the item data where name == "foo", i.e. want a CEL expression that prints out
I attempted to use 'data.filter(x, x.name=="foo")' but this does not work as data is not a list, any alternatives?
Note: the children of data are variable with keys unknown
Beta Was this translation helpful? Give feedback.
All reactions