Skip to content

Commit 8193b3c

Browse files
committed
Allowed V5 schema changes
1 parent 620fc9b commit 8193b3c

File tree

3 files changed

+105
-27
lines changed

3 files changed

+105
-27
lines changed

__tests__/integration/schema/__snapshots__/columnAggregates.test.js.snap

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type BackwardCompoundsConnection {
4848
"""
4949
A list of edges which contains the \`BackwardCompound\` and cursor to aid in pagination.
5050
"""
51-
edges: [BackwardCompoundsEdge!]!
51+
edges: [BackwardCompoundsEdge]!
5252
5353
"""A list of \`BackwardCompound\` objects."""
5454
nodes: [BackwardCompound]!
@@ -120,7 +120,7 @@ type BackwardsConnection {
120120
"""
121121
A list of edges which contains the \`Backward\` and cursor to aid in pagination.
122122
"""
123-
edges: [BackwardsEdge!]!
123+
edges: [BackwardsEdge]!
124124
125125
"""A list of \`Backward\` objects."""
126126
nodes: [Backward]!
@@ -202,7 +202,7 @@ type ChildrenConnection {
202202
"""
203203
A list of edges which contains the \`Child\` and cursor to aid in pagination.
204204
"""
205-
edges: [ChildrenEdge!]!
205+
edges: [ChildrenEdge]!
206206
207207
"""A list of \`Child\` objects."""
208208
nodes: [Child]!
@@ -348,7 +348,7 @@ type FoosConnection {
348348
"""
349349
A list of edges which contains the \`Foo\` and cursor to aid in pagination.
350350
"""
351-
edges: [FoosEdge!]!
351+
edges: [FoosEdge]!
352352
353353
"""A list of \`Foo\` objects."""
354354
nodes: [Foo]!
@@ -482,7 +482,7 @@ type ForwardCompoundsConnection {
482482
"""
483483
A list of edges which contains the \`ForwardCompound\` and cursor to aid in pagination.
484484
"""
485-
edges: [ForwardCompoundsEdge!]!
485+
edges: [ForwardCompoundsEdge]!
486486
487487
"""A list of \`ForwardCompound\` objects."""
488488
nodes: [ForwardCompound]!
@@ -550,7 +550,7 @@ type ForwardsConnection {
550550
"""
551551
A list of edges which contains the \`Forward\` and cursor to aid in pagination.
552552
"""
553-
edges: [ForwardsEdge!]!
553+
edges: [ForwardsEdge]!
554554
555555
"""A list of \`Forward\` objects."""
556556
nodes: [Forward]!
@@ -677,7 +677,7 @@ type ParentsConnection {
677677
"""
678678
A list of edges which contains the \`Parent\` and cursor to aid in pagination.
679679
"""
680-
edges: [ParentsEdge!]!
680+
edges: [ParentsEdge]!
681681
682682
"""A list of \`Parent\` objects."""
683683
nodes: [Parent]!
@@ -953,7 +953,11 @@ type Query implements Node {
953953
"""The globally unique \`ID\` to be used in selecting a single \`Backward\`."""
954954
nodeId: ID!
955955
): Backward
956+
957+
"""Get a single \`Backward\`."""
956958
backwardByFooId(fooId: Int!): Backward
959+
960+
"""Get a single \`Backward\`."""
957961
backwardById(id: Int!): Backward
958962
959963
"""Reads a single \`BackwardCompound\` using its globally unique \`ID\`."""
@@ -963,30 +967,44 @@ type Query implements Node {
963967
"""
964968
nodeId: ID!
965969
): BackwardCompound
970+
971+
"""Get a single \`BackwardCompound\`."""
966972
backwardCompoundByBackwardCompound1AndBackwardCompound2(backwardCompound1: Int!, backwardCompound2: Int!): BackwardCompound
967973
968974
"""Reads a single \`Child\` using its globally unique \`ID\`."""
969975
child(
970976
"""The globally unique \`ID\` to be used in selecting a single \`Child\`."""
971977
nodeId: ID!
972978
): Child
979+
980+
"""Get a single \`Child\`."""
973981
childById(id: Int!): Child
974982
975983
"""Reads a single \`Foo\` using its globally unique \`ID\`."""
976984
foo(
977985
"""The globally unique \`ID\` to be used in selecting a single \`Foo\`."""
978986
nodeId: ID!
979987
): Foo
988+
989+
"""Get a single \`Foo\`."""
980990
fooByBackwardCompound1AndBackwardCompound2(backwardCompound1: Int!, backwardCompound2: Int!): Foo
991+
992+
"""Get a single \`Foo\`."""
981993
fooByForwardCompound1AndForwardCompound2(forwardCompound1: Int!, forwardCompound2: Int!): Foo
994+
995+
"""Get a single \`Foo\`."""
982996
fooByForwardId(forwardId: Int!): Foo
997+
998+
"""Get a single \`Foo\`."""
983999
fooById(id: Int!): Foo
9841000
9851001
"""Reads a single \`Forward\` using its globally unique \`ID\`."""
9861002
forward(
9871003
"""The globally unique \`ID\` to be used in selecting a single \`Forward\`."""
9881004
nodeId: ID!
9891005
): Forward
1006+
1007+
"""Get a single \`Forward\`."""
9901008
forwardById(id: Int!): Forward
9911009
9921010
"""Reads a single \`ForwardCompound\` using its globally unique \`ID\`."""
@@ -996,6 +1014,8 @@ type Query implements Node {
9961014
"""
9971015
nodeId: ID!
9981016
): ForwardCompound
1017+
1018+
"""Get a single \`ForwardCompound\`."""
9991019
forwardCompoundByForwardCompound1AndForwardCompound2(forwardCompound1: Int!, forwardCompound2: Int!): ForwardCompound
10001020
10011021
"""Fetches an object given its globally unique \`ID\`."""
@@ -1014,13 +1034,14 @@ type Query implements Node {
10141034
"""The globally unique \`ID\` to be used in selecting a single \`Parent\`."""
10151035
nodeId: ID!
10161036
): Parent
1037+
1038+
"""Get a single \`Parent\`."""
10171039
parentById(id: Int!): Parent
10181040
10191041
"""
10201042
Exposes the root query type nested one level down. This is helpful for Relay 1
10211043
which can only query top level fields if they are in a particular form.
10221044
"""
10231045
query: Query!
1024-
}
1025-
"
1046+
}"
10261047
`;

__tests__/integration/schema/__snapshots__/ignoreIndexes.test.js.snap

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type BackwardCompoundsConnection {
4242
"""
4343
A list of edges which contains the \`BackwardCompound\` and cursor to aid in pagination.
4444
"""
45-
edges: [BackwardCompoundsEdge!]!
45+
edges: [BackwardCompoundsEdge]!
4646
4747
"""A list of \`BackwardCompound\` objects."""
4848
nodes: [BackwardCompound]!
@@ -99,7 +99,7 @@ type BackwardsConnection {
9999
"""
100100
A list of edges which contains the \`Backward\` and cursor to aid in pagination.
101101
"""
102-
edges: [BackwardsEdge!]!
102+
edges: [BackwardsEdge]!
103103
104104
"""A list of \`Backward\` objects."""
105105
nodes: [Backward]!
@@ -140,6 +140,8 @@ enum BackwardsOrderBy {
140140
}
141141
142142
type Child implements Node {
143+
"""Reads a single \`Foo\` that is related to this \`Child\`."""
144+
fooByFooId: Foo
143145
fooId: Int
144146
id: Int!
145147
name: String!
@@ -163,7 +165,7 @@ type ChildrenConnection {
163165
"""
164166
A list of edges which contains the \`Child\` and cursor to aid in pagination.
165167
"""
166-
edges: [ChildrenEdge!]!
168+
edges: [ChildrenEdge]!
167169
168170
"""A list of \`Child\` objects."""
169171
nodes: [Child]!
@@ -186,6 +188,14 @@ type ChildrenEdge {
186188
187189
"""Methods to use when ordering \`Child\`."""
188190
enum ChildrenOrderBy {
191+
FOO_BY_FOO_ID__BACKWARD_COMPOUND_1_ASC
192+
FOO_BY_FOO_ID__BACKWARD_COMPOUND_1_DESC
193+
FOO_BY_FOO_ID__FORWARD_COMPOUND_1_ASC
194+
FOO_BY_FOO_ID__FORWARD_COMPOUND_1_DESC
195+
FOO_BY_FOO_ID__FORWARD_ID_ASC
196+
FOO_BY_FOO_ID__FORWARD_ID_DESC
197+
FOO_BY_FOO_ID__ID_ASC
198+
FOO_BY_FOO_ID__ID_DESC
189199
ID_ASC
190200
ID_DESC
191201
NATURAL
@@ -220,6 +230,9 @@ type Foo implements Node {
220230
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
221231
"""
222232
nodeId: ID!
233+
234+
"""Reads a single \`Parent\` that is related to this \`Foo\`."""
235+
parentByParentId: Parent
223236
parentId: Int
224237
}
225238
@@ -245,7 +258,7 @@ type FoosConnection {
245258
"""
246259
A list of edges which contains the \`Foo\` and cursor to aid in pagination.
247260
"""
248-
edges: [FoosEdge!]!
261+
edges: [FoosEdge]!
249262
250263
"""A list of \`Foo\` objects."""
251264
nodes: [Foo]!
@@ -289,6 +302,8 @@ enum FoosOrderBy {
289302
ID_ASC
290303
ID_DESC
291304
NATURAL
305+
PARENT_BY_PARENT_ID__ID_ASC
306+
PARENT_BY_PARENT_ID__ID_DESC
292307
PRIMARY_KEY_ASC
293308
PRIMARY_KEY_DESC
294309
}
@@ -335,7 +350,7 @@ type ForwardCompoundsConnection {
335350
"""
336351
A list of edges which contains the \`ForwardCompound\` and cursor to aid in pagination.
337352
"""
338-
edges: [ForwardCompoundsEdge!]!
353+
edges: [ForwardCompoundsEdge]!
339354
340355
"""A list of \`ForwardCompound\` objects."""
341356
nodes: [ForwardCompound]!
@@ -388,7 +403,7 @@ type ForwardsConnection {
388403
"""
389404
A list of edges which contains the \`Forward\` and cursor to aid in pagination.
390405
"""
391-
edges: [ForwardsEdge!]!
406+
edges: [ForwardsEdge]!
392407
393408
"""A list of \`Forward\` objects."""
394409
nodes: [Forward]!
@@ -474,7 +489,7 @@ type ParentsConnection {
474489
"""
475490
A list of edges which contains the \`Parent\` and cursor to aid in pagination.
476491
"""
477-
edges: [ParentsEdge!]!
492+
edges: [ParentsEdge]!
478493
479494
"""A list of \`Parent\` objects."""
480495
nodes: [Parent]!
@@ -714,7 +729,11 @@ type Query implements Node {
714729
"""The globally unique \`ID\` to be used in selecting a single \`Backward\`."""
715730
nodeId: ID!
716731
): Backward
732+
733+
"""Get a single \`Backward\`."""
717734
backwardByFooId(fooId: Int!): Backward
735+
736+
"""Get a single \`Backward\`."""
718737
backwardById(id: Int!): Backward
719738
720739
"""Reads a single \`BackwardCompound\` using its globally unique \`ID\`."""
@@ -724,30 +743,44 @@ type Query implements Node {
724743
"""
725744
nodeId: ID!
726745
): BackwardCompound
746+
747+
"""Get a single \`BackwardCompound\`."""
727748
backwardCompoundByBackwardCompound1AndBackwardCompound2(backwardCompound1: Int!, backwardCompound2: Int!): BackwardCompound
728749
729750
"""Reads a single \`Child\` using its globally unique \`ID\`."""
730751
child(
731752
"""The globally unique \`ID\` to be used in selecting a single \`Child\`."""
732753
nodeId: ID!
733754
): Child
755+
756+
"""Get a single \`Child\`."""
734757
childById(id: Int!): Child
735758
736759
"""Reads a single \`Foo\` using its globally unique \`ID\`."""
737760
foo(
738761
"""The globally unique \`ID\` to be used in selecting a single \`Foo\`."""
739762
nodeId: ID!
740763
): Foo
764+
765+
"""Get a single \`Foo\`."""
741766
fooByBackwardCompound1AndBackwardCompound2(backwardCompound1: Int!, backwardCompound2: Int!): Foo
767+
768+
"""Get a single \`Foo\`."""
742769
fooByForwardCompound1AndForwardCompound2(forwardCompound1: Int!, forwardCompound2: Int!): Foo
770+
771+
"""Get a single \`Foo\`."""
743772
fooByForwardId(forwardId: Int!): Foo
773+
774+
"""Get a single \`Foo\`."""
744775
fooById(id: Int!): Foo
745776
746777
"""Reads a single \`Forward\` using its globally unique \`ID\`."""
747778
forward(
748779
"""The globally unique \`ID\` to be used in selecting a single \`Forward\`."""
749780
nodeId: ID!
750781
): Forward
782+
783+
"""Get a single \`Forward\`."""
751784
forwardById(id: Int!): Forward
752785
753786
"""Reads a single \`ForwardCompound\` using its globally unique \`ID\`."""
@@ -757,6 +790,8 @@ type Query implements Node {
757790
"""
758791
nodeId: ID!
759792
): ForwardCompound
793+
794+
"""Get a single \`ForwardCompound\`."""
760795
forwardCompoundByForwardCompound1AndForwardCompound2(forwardCompound1: Int!, forwardCompound2: Int!): ForwardCompound
761796
762797
"""Fetches an object given its globally unique \`ID\`."""
@@ -775,13 +810,14 @@ type Query implements Node {
775810
"""The globally unique \`ID\` to be used in selecting a single \`Parent\`."""
776811
nodeId: ID!
777812
): Parent
813+
814+
"""Get a single \`Parent\`."""
778815
parentById(id: Int!): Parent
779816
780817
"""
781818
Exposes the root query type nested one level down. This is helpful for Relay 1
782819
which can only query top level fields if they are in a particular form.
783820
"""
784821
query: Query!
785-
}
786-
"
822+
}"
787823
`;

0 commit comments

Comments
 (0)