@auth rule with (inner) OR condition fails if an empty list is given as variable

Yes, I had tested those possibilities before, and requiring the array doesn’t seem to change the situation.

  • Still an error when the list exists but is empty.
  • this time (with [String]!) the error is different when the list is nil (“cannot be null”, or “must be defined’”), that’s ok.
  • still fail silently with @auth and the an empty list, which is problematic in the case of a OR like my exemple. Yet I agree that making the OR outside the filter will be a workaround like you proposed. That is why I added the term (inner) in the issue title ;).
1 Like