When I use my schema, a directive throws Only scalar (or nonnull version of this) are supported.
The related part of the schema:
"""The directive is responsible for authorization check."""
directive @auth(
"""Permissions which are required for field access."""
permissions: [String!]
"""
The list of roles that an authorized user should have to get the access.
"""
roles: [String!]
) on FIELD_DEFINITION
I checked the GraphQL spec and it's allowed: https://spec.graphql.org/June2018/#sec-Type-System.Directives
Are we able to fix it? Happy to contribute if you can give some guidance
When I use my schema, a directive throws
Only scalar (or nonnull version of this) are supported.The related part of the schema:
I checked the GraphQL spec and it's allowed: https://spec.graphql.org/June2018/#sec-Type-System.Directives
Are we able to fix it? Happy to contribute if you can give some guidance