With:
add: {
rule: "{ \"Admin\": { in: $ROLE } }"
}
I get:
{"errors":[{"message":"resolving updateGQLSchema failed because Type User: @auth: `\"Admin\"` is not a valid GraphQL variable. (Locations: [{Line: 3, Column: 4}])","extensions":{"code":"Error"}}]}
The following works:
rule: "{ $ROLE: { in: [ \"Admin\" ] } }"
But that’s not what we want, because $ROLE
is an array. You’re right that this should probably be what works, but it doesn’t seem to be.