Skip to content

__DirectiveLocation for directives #818

@sungam3r

Description

@sungam3r

I propose to add one more location into __DirectiveLocation enumeration: DIRECTIVE_DEFINITION. Relates to #300. Logically, nothing prevents directives from being applied to the directives themselves. Of course, parser support is required.

directive @important on DIRECTIVE_DEFINITION
directive @statusquo on FIELD_DEFINITION @important


type User {
  id: ID!
  name: String @statusquo
  admin: Boolean!
}

type Query {
  user: User
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions