ENUM

__DirectiveLocation

A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.

link GraphQL Schema definition

1 enum __DirectiveLocation {
2
3 # Location adjacent to a query operation.
4 QUERY
5
6 # Location adjacent to a mutation operation.
7 MUTATION
8
9 # Location adjacent to a subscription operation.
10 SUBSCRIPTION
11
12 # Location adjacent to a field.
13 FIELD
14
15 # Location adjacent to a fragment definition.
16 FRAGMENT_DEFINITION
17
18 # Location adjacent to a fragment spread.
19 FRAGMENT_SPREAD
20
21 # Location adjacent to an inline fragment.
22 INLINE_FRAGMENT
23
24 # Location adjacent to a variable definition.
25 VARIABLE_DEFINITION
26
27 # Location adjacent to a schema definition.
28 SCHEMA
29
30 # Location adjacent to a scalar definition.
31 SCALAR
32
33 # Location adjacent to an object type definition.
34 OBJECT
35
36 # Location adjacent to a field definition.
37 FIELD_DEFINITION
38
39 # Location adjacent to an argument definition.
40 ARGUMENT_DEFINITION
41
42 # Location adjacent to an interface definition.
43 INTERFACE
44
45 # Location adjacent to a union definition.
46 UNION
47
48 # Location adjacent to an enum definition.
49 ENUM
50
51 # Location adjacent to an enum value definition.
52 ENUM_VALUE
53
54 # Location adjacent to an input object type definition.
55 INPUT_OBJECT
56
57 # Location adjacent to an input object field definition.
58 INPUT_FIELD_DEFINITION
59 }