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

Yes, this is possible. You have to use “in” instead of eq.

e.g

{ rule:  "{$arr: { in: [\"one\"] } }" }

So it will check if there is any “one” in the array.

1 Like