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
}
I propose to add one more location into
__DirectiveLocationenumeration:DIRECTIVE_DEFINITION. Relates to #300. Logically, nothing prevents directives from being applied to the directives themselves. Of course, parser support is required.