Replies: 1 comment
-
Hey @csyding could the ![]() Sorry, it is not documented yet (I don't think). This might not work for your particular situation, where you want to send an array? (Instead of compare against one in a constaint). One hacky option is that you could create a context with a key per group:
You could build that programatically in a loop and then write constraints like: ![]() Where you say |
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
-
hi there!
i was wondering if there's a good way to create a constraint where the type is an array and just check if contains a value? for example, in my use case, i might have a user that belongs to multiple groups:
"groups" : ["admin", "accounting", "underwriting"]
and for a flag, i might want anyone who has the group "accounting" assigned to them to evaluate to true. at the moment i've just been doing a loop over each of the groups and evaluating that way, but is there a better way to do this? i was hoping for something like "if groups contains [whatever]" but i can't seem to find that type of constraint.
Beta Was this translation helpful? Give feedback.
All reactions