Is it possible to have an "array division" in an @auth rule?

@MichelDiz unfortunately this does not work since I do not know the array elements of Check.test beforehand. Thus I have to use a query rule with @filter. The only thing I could do would be

{ rule: """queryCheck(filter: { test: { in: $arr } }) { id }""" }

and this would result in true even if only one of the elements in arr matches what is in test.

  • arr = ["one", "two", "three"]; test = ["one", "three"] → results in true :white_check_mark:
  • arr = ["one", "two"]; test = ["one", "three"] → results in true :x:
2 Likes