Skip to content

Commit 1f59d5c

Browse files
ENGCOM-5460: Declare @doc and @resolver directives #775
- Merge Pull Request magento/graphql-ce#775 from Vinai/graphql-ce:declare-directives - Merged commits: 1. f653ac8 2. f25f779 3. 301ebe7 4. 24da88e
2 parents d7b928a + 24da88e commit 1f59d5c

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

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

+40
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,46 @@
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+
40+
directive @typeResolver(class: String="") on INTERFACE | OBJECT
41+
42+
directive @cache(cacheIdentity: String="" cachable: Boolean=true) on QUERY
43+
444
type Query {
545
}
646

0 commit comments

Comments
 (0)