Skip to content

Commit f653ac8

Browse files
committed
Declare @doc and @resolver directive
These declarations remove a lot of warnings from the PHPStorm GraphQl plugin while editing schema.graphqls files.
1 parent 8cf8b1d commit f653ac8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

app/code/Magento/GraphQl/etc/schema.graphqls

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
11
# Copyright © Magento, Inc. All rights reserved.
22
# See COPYING.txt for license details.
33

4+
directive @doc(description: String="") on QUERY
5+
| MUTATION
6+
| FIELD
7+
| FRAGMENT_DEFINITION
8+
| FRAGMENT_SPREAD
9+
| INLINE_FRAGMENT
10+
| SCHEMA
11+
| SCALAR
12+
| OBJECT
13+
| FIELD_DEFINITION
14+
| ARGUMENT_DEFINITION
15+
| INTERFACE
16+
| UNION
17+
| ENUM
18+
| ENUM_VALUE
19+
| INPUT_OBJECT
20+
| INPUT_FIELD_DEFINITION
21+
22+
directive @resolver(class: String="") on QUERY
23+
| MUTATION
24+
| FIELD
25+
| FRAGMENT_DEFINITION
26+
| FRAGMENT_SPREAD
27+
| INLINE_FRAGMENT
28+
| SCHEMA
29+
| SCALAR
30+
| OBJECT
31+
| FIELD_DEFINITION
32+
| ARGUMENT_DEFINITION
33+
| INTERFACE
34+
| UNION
35+
| ENUM
36+
| ENUM_VALUE
37+
| INPUT_OBJECT
38+
| INPUT_FIELD_DEFINITION
39+
440
type Query {
541
}
642

0 commit comments

Comments
 (0)