-
Notifications
You must be signed in to change notification settings - Fork 645
/
schema.graphqls
66 lines (55 loc) · 1.19 KB
/
schema.graphqls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
type Query {
direction: Direction
gravity: Gravity
foo: Foo
fooSealed: FooSealed
fooClass: FooClass
fooEnum: FooEnum
}
enum Direction {
NORTH,
north @deprecated,
SOUTH,
EAST,
WEST,
# renamed in extra.graphqls
type,
# Value names should be escaped with _ suffixes when generating enums
name,
ordinal,
Companion,
}
enum Gravity {
TOP,
# fails with java.lang.AssertionError: Class with incorrect id found: expected enums/type/Gravity.TOP, actual enums/type/Gravity.top
# See https://youtrack.jetbrains.com/issue/KT-49352
# top @deprecated,
top2 @deprecated,
BOTTOM,
LEFT,
RIGHT,
# Value names should be escaped with _ suffixes when generating sealed classes
Companion,
# Value names should not be escaped when generating sealed classes
name,
ordinal,
# renamed in extra.graphqls
type,
}
# See https://youtrack.jetbrains.com/issue/KT-52315
enum Foo {
header,
footer,
}
enum FooEnum {
# not renamed in extra.graphqls, will be renamed automatically
type,
}
enum FooSealed {
# not renamed in extra.graphqls, will be renamed automatically
type,
}
enum FooClass {
# not renamed in extra.graphqls, will be renamed automatically
type,
}