Debian Codegraph @

src/graphql/language/directive_locations.py

raw
1 from enum import Enum
2
3 __all__ = ["DirectiveLocation"]
4
5
6 class DirectiveLocation(Enum):
7 """The enum type representing the directive location values."""
8
9 # Request Definitions
10 QUERY = "query"
11 MUTATION = "mutation"
12 SUBSCRIPTION = "subscription"
13 FIELD = "field"
14 FRAGMENT_DEFINITION = "fragment definition"
15 FRAGMENT_SPREAD = "fragment spread"
16 VARIABLE_DEFINITION = "variable definition"
17 INLINE_FRAGMENT = "inline fragment"
18
19 # Type System Definitions
20 SCHEMA = "schema"
21 SCALAR = "scalar"
22 OBJECT = "object"
23 FIELD_DEFINITION = "field definition"
24 ARGUMENT_DEFINITION = "argument definition"
25 INTERFACE = "interface"
26 UNION = "union"
27 ENUM = "enum"
28 ENUM_VALUE = "enum value"
29 INPUT_OBJECT = "input object"
30 INPUT_FIELD_DEFINITION = "input field definition"
31 DIRECTIVE_DEFINITION = "directive definition"