Skip to content

Commit b36c8f0

Browse files
committed
Add clarification about directives technically allowed in both schema and operation locations
1 parent ed06e3e commit b36c8f0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

documentation/directives.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ There are two broad categories of directives, schema and operation directives. S
1111

1212
Often, operation directives are also called "query directives", although they can be used in any GraphQL operation. Whilst both names can be used interchangeably, note that GraphQL Java class names use "query directives".
1313

14+
Note for those who love the details: the terminology of directives is a bit confusing. It is technically possible to define a directive that is both a schema and operation directive, in other words, defined for both schema and operation locations. However in practice, this is not common.
15+
1416
# Schema Directives
1517

1618
## Adding Behaviour

versioned_docs/version-v22/directives.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ There are two broad categories of directives, schema and operation directives. S
1111

1212
Often, operation directives are also called "query directives", although they can be used in any GraphQL operation. Whilst both names can be used interchangeably, note that GraphQL Java class names use "query directives".
1313

14+
Note for those who love the details: the terminology of directives is a bit confusing. It is technically possible to define a directive that is both a schema and operation directive, in other words, defined for both schema and operation locations. However in practice, this is not common.
15+
1416
# Schema Directives
1517

1618
## Adding Behaviour

0 commit comments

Comments
 (0)