Support directives on directive definitions in GraphQL (#19171)
This commit is contained in:
1 parent
afb9c080bd
commit
5adf567676
7 files changed
+66
-6
No files matched your search
@@ -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
|
||||
```
|
||||
Reference in new issue
Block a user