early termination with variable assignment #521
Unanswered
binnie268
asked this question in
OPA and Rego
Replies: 1 comment
-
There’s an open issue for that here. I too would love to see something like a SQL “limit” function for this. Your best option now is to collect in a comprehension and then extract the first item, but it’ll always realize the full collection. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I have seen examples of termination on ground values, but how can we do something similar with variable assignments?
For example if I have the below, if value_match returns true, then stop iteration of data.variables and set the number and resolvecount 's value is set.
Beta Was this translation helpful? Give feedback.
All reactions