Skip to content

Allowing List for fields in directives #84

@jbkoh

Description

@jbkoh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions