Support directives on directive definitions in GraphQL (#19171)

This commit is contained in:
Bingjia Yang authored and GitHub committed 2026-05-19 22:35:00 +08:00
1 parent afb9c080bd
commit 5adf567676
7 files changed
+66 -6

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#### Support directives on directive definitions (#19171 by @YBJ0000)
[Directives on directive definitions](https://github.com/graphql/graphql-js/pull/4521) (and `extend directive` extensions) are now supported.
<!-- prettier-ignore -->
```gql
# Input
directive @a @b on QUERY
extend directive @a @b
# Prettier stable
Error: Syntax Error: Expected "on", found "@".
# Prettier main
directive @a @b on QUERY
extend directive @a @b
```