Skip to content

How to add a non-schema directive? #246

Closed
@bsara

Description

@bsara

I've read the issue and everything about how to add a schema directive:

But what I need to know is how to add a non-schema directive (I.E. for a query, mutation, etc.).

I am supposed to be able to define a directive like this:

directive @hasAccess(permission: [Permission!]!) on
    QUERY
  | MUTATION
  | SUBSCRIPTION
  | FIELD

But what do I need to create/do on the Java side for that to be registered in the SchemaParser? Is this even possible right now with this library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions