Skip to content

Commit

Permalink
Allowed V5 schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Nov 24, 2024
1 parent 620fc9b commit 8193b3c
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type BackwardCompoundsConnection {
"""
A list of edges which contains the \`BackwardCompound\` and cursor to aid in pagination.
"""
edges: [BackwardCompoundsEdge!]!
edges: [BackwardCompoundsEdge]!
"""A list of \`BackwardCompound\` objects."""
nodes: [BackwardCompound]!
Expand Down Expand Up @@ -120,7 +120,7 @@ type BackwardsConnection {
"""
A list of edges which contains the \`Backward\` and cursor to aid in pagination.
"""
edges: [BackwardsEdge!]!
edges: [BackwardsEdge]!
"""A list of \`Backward\` objects."""
nodes: [Backward]!
Expand Down Expand Up @@ -202,7 +202,7 @@ type ChildrenConnection {
"""
A list of edges which contains the \`Child\` and cursor to aid in pagination.
"""
edges: [ChildrenEdge!]!
edges: [ChildrenEdge]!
"""A list of \`Child\` objects."""
nodes: [Child]!
Expand Down Expand Up @@ -348,7 +348,7 @@ type FoosConnection {
"""
A list of edges which contains the \`Foo\` and cursor to aid in pagination.
"""
edges: [FoosEdge!]!
edges: [FoosEdge]!
"""A list of \`Foo\` objects."""
nodes: [Foo]!
Expand Down Expand Up @@ -482,7 +482,7 @@ type ForwardCompoundsConnection {
"""
A list of edges which contains the \`ForwardCompound\` and cursor to aid in pagination.
"""
edges: [ForwardCompoundsEdge!]!
edges: [ForwardCompoundsEdge]!
"""A list of \`ForwardCompound\` objects."""
nodes: [ForwardCompound]!
Expand Down Expand Up @@ -550,7 +550,7 @@ type ForwardsConnection {
"""
A list of edges which contains the \`Forward\` and cursor to aid in pagination.
"""
edges: [ForwardsEdge!]!
edges: [ForwardsEdge]!
"""A list of \`Forward\` objects."""
nodes: [Forward]!
Expand Down Expand Up @@ -677,7 +677,7 @@ type ParentsConnection {
"""
A list of edges which contains the \`Parent\` and cursor to aid in pagination.
"""
edges: [ParentsEdge!]!
edges: [ParentsEdge]!
"""A list of \`Parent\` objects."""
nodes: [Parent]!
Expand Down Expand Up @@ -953,7 +953,11 @@ type Query implements Node {
"""The globally unique \`ID\` to be used in selecting a single \`Backward\`."""
nodeId: ID!
): Backward
"""Get a single \`Backward\`."""
backwardByFooId(fooId: Int!): Backward
"""Get a single \`Backward\`."""
backwardById(id: Int!): Backward
"""Reads a single \`BackwardCompound\` using its globally unique \`ID\`."""
Expand All @@ -963,30 +967,44 @@ type Query implements Node {
"""
nodeId: ID!
): BackwardCompound
"""Get a single \`BackwardCompound\`."""
backwardCompoundByBackwardCompound1AndBackwardCompound2(backwardCompound1: Int!, backwardCompound2: Int!): BackwardCompound
"""Reads a single \`Child\` using its globally unique \`ID\`."""
child(
"""The globally unique \`ID\` to be used in selecting a single \`Child\`."""
nodeId: ID!
): Child
"""Get a single \`Child\`."""
childById(id: Int!): Child
"""Reads a single \`Foo\` using its globally unique \`ID\`."""
foo(
"""The globally unique \`ID\` to be used in selecting a single \`Foo\`."""
nodeId: ID!
): Foo
"""Get a single \`Foo\`."""
fooByBackwardCompound1AndBackwardCompound2(backwardCompound1: Int!, backwardCompound2: Int!): Foo
"""Get a single \`Foo\`."""
fooByForwardCompound1AndForwardCompound2(forwardCompound1: Int!, forwardCompound2: Int!): Foo
"""Get a single \`Foo\`."""
fooByForwardId(forwardId: Int!): Foo
"""Get a single \`Foo\`."""
fooById(id: Int!): Foo
"""Reads a single \`Forward\` using its globally unique \`ID\`."""
forward(
"""The globally unique \`ID\` to be used in selecting a single \`Forward\`."""
nodeId: ID!
): Forward
"""Get a single \`Forward\`."""
forwardById(id: Int!): Forward
"""Reads a single \`ForwardCompound\` using its globally unique \`ID\`."""
Expand All @@ -996,6 +1014,8 @@ type Query implements Node {
"""
nodeId: ID!
): ForwardCompound
"""Get a single \`ForwardCompound\`."""
forwardCompoundByForwardCompound1AndForwardCompound2(forwardCompound1: Int!, forwardCompound2: Int!): ForwardCompound
"""Fetches an object given its globally unique \`ID\`."""
Expand All @@ -1014,13 +1034,14 @@ type Query implements Node {
"""The globally unique \`ID\` to be used in selecting a single \`Parent\`."""
nodeId: ID!
): Parent
"""Get a single \`Parent\`."""
parentById(id: Int!): Parent
"""
Exposes the root query type nested one level down. This is helpful for Relay 1
which can only query top level fields if they are in a particular form.
"""
query: Query!
}
"
}"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type BackwardCompoundsConnection {
"""
A list of edges which contains the \`BackwardCompound\` and cursor to aid in pagination.
"""
edges: [BackwardCompoundsEdge!]!
edges: [BackwardCompoundsEdge]!
"""A list of \`BackwardCompound\` objects."""
nodes: [BackwardCompound]!
Expand Down Expand Up @@ -99,7 +99,7 @@ type BackwardsConnection {
"""
A list of edges which contains the \`Backward\` and cursor to aid in pagination.
"""
edges: [BackwardsEdge!]!
edges: [BackwardsEdge]!
"""A list of \`Backward\` objects."""
nodes: [Backward]!
Expand Down Expand Up @@ -140,6 +140,8 @@ enum BackwardsOrderBy {
}
type Child implements Node {
"""Reads a single \`Foo\` that is related to this \`Child\`."""
fooByFooId: Foo
fooId: Int
id: Int!
name: String!
Expand All @@ -163,7 +165,7 @@ type ChildrenConnection {
"""
A list of edges which contains the \`Child\` and cursor to aid in pagination.
"""
edges: [ChildrenEdge!]!
edges: [ChildrenEdge]!
"""A list of \`Child\` objects."""
nodes: [Child]!
Expand All @@ -186,6 +188,14 @@ type ChildrenEdge {
"""Methods to use when ordering \`Child\`."""
enum ChildrenOrderBy {
FOO_BY_FOO_ID__BACKWARD_COMPOUND_1_ASC
FOO_BY_FOO_ID__BACKWARD_COMPOUND_1_DESC
FOO_BY_FOO_ID__FORWARD_COMPOUND_1_ASC
FOO_BY_FOO_ID__FORWARD_COMPOUND_1_DESC
FOO_BY_FOO_ID__FORWARD_ID_ASC
FOO_BY_FOO_ID__FORWARD_ID_DESC
FOO_BY_FOO_ID__ID_ASC
FOO_BY_FOO_ID__ID_DESC
ID_ASC
ID_DESC
NATURAL
Expand Down Expand Up @@ -220,6 +230,9 @@ type Foo implements Node {
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
"""
nodeId: ID!
"""Reads a single \`Parent\` that is related to this \`Foo\`."""
parentByParentId: Parent
parentId: Int
}
Expand All @@ -245,7 +258,7 @@ type FoosConnection {
"""
A list of edges which contains the \`Foo\` and cursor to aid in pagination.
"""
edges: [FoosEdge!]!
edges: [FoosEdge]!
"""A list of \`Foo\` objects."""
nodes: [Foo]!
Expand Down Expand Up @@ -289,6 +302,8 @@ enum FoosOrderBy {
ID_ASC
ID_DESC
NATURAL
PARENT_BY_PARENT_ID__ID_ASC
PARENT_BY_PARENT_ID__ID_DESC
PRIMARY_KEY_ASC
PRIMARY_KEY_DESC
}
Expand Down Expand Up @@ -335,7 +350,7 @@ type ForwardCompoundsConnection {
"""
A list of edges which contains the \`ForwardCompound\` and cursor to aid in pagination.
"""
edges: [ForwardCompoundsEdge!]!
edges: [ForwardCompoundsEdge]!
"""A list of \`ForwardCompound\` objects."""
nodes: [ForwardCompound]!
Expand Down Expand Up @@ -388,7 +403,7 @@ type ForwardsConnection {
"""
A list of edges which contains the \`Forward\` and cursor to aid in pagination.
"""
edges: [ForwardsEdge!]!
edges: [ForwardsEdge]!
"""A list of \`Forward\` objects."""
nodes: [Forward]!
Expand Down Expand Up @@ -474,7 +489,7 @@ type ParentsConnection {
"""
A list of edges which contains the \`Parent\` and cursor to aid in pagination.
"""
edges: [ParentsEdge!]!
edges: [ParentsEdge]!
"""A list of \`Parent\` objects."""
nodes: [Parent]!
Expand Down Expand Up @@ -714,7 +729,11 @@ type Query implements Node {
"""The globally unique \`ID\` to be used in selecting a single \`Backward\`."""
nodeId: ID!
): Backward
"""Get a single \`Backward\`."""
backwardByFooId(fooId: Int!): Backward
"""Get a single \`Backward\`."""
backwardById(id: Int!): Backward
"""Reads a single \`BackwardCompound\` using its globally unique \`ID\`."""
Expand All @@ -724,30 +743,44 @@ type Query implements Node {
"""
nodeId: ID!
): BackwardCompound
"""Get a single \`BackwardCompound\`."""
backwardCompoundByBackwardCompound1AndBackwardCompound2(backwardCompound1: Int!, backwardCompound2: Int!): BackwardCompound
"""Reads a single \`Child\` using its globally unique \`ID\`."""
child(
"""The globally unique \`ID\` to be used in selecting a single \`Child\`."""
nodeId: ID!
): Child
"""Get a single \`Child\`."""
childById(id: Int!): Child
"""Reads a single \`Foo\` using its globally unique \`ID\`."""
foo(
"""The globally unique \`ID\` to be used in selecting a single \`Foo\`."""
nodeId: ID!
): Foo
"""Get a single \`Foo\`."""
fooByBackwardCompound1AndBackwardCompound2(backwardCompound1: Int!, backwardCompound2: Int!): Foo
"""Get a single \`Foo\`."""
fooByForwardCompound1AndForwardCompound2(forwardCompound1: Int!, forwardCompound2: Int!): Foo
"""Get a single \`Foo\`."""
fooByForwardId(forwardId: Int!): Foo
"""Get a single \`Foo\`."""
fooById(id: Int!): Foo
"""Reads a single \`Forward\` using its globally unique \`ID\`."""
forward(
"""The globally unique \`ID\` to be used in selecting a single \`Forward\`."""
nodeId: ID!
): Forward
"""Get a single \`Forward\`."""
forwardById(id: Int!): Forward
"""Reads a single \`ForwardCompound\` using its globally unique \`ID\`."""
Expand All @@ -757,6 +790,8 @@ type Query implements Node {
"""
nodeId: ID!
): ForwardCompound
"""Get a single \`ForwardCompound\`."""
forwardCompoundByForwardCompound1AndForwardCompound2(forwardCompound1: Int!, forwardCompound2: Int!): ForwardCompound
"""Fetches an object given its globally unique \`ID\`."""
Expand All @@ -775,13 +810,14 @@ type Query implements Node {
"""The globally unique \`ID\` to be used in selecting a single \`Parent\`."""
nodeId: ID!
): Parent
"""Get a single \`Parent\`."""
parentById(id: Int!): Parent
"""
Exposes the root query type nested one level down. This is helpful for Relay 1
which can only query top level fields if they are in a particular form.
"""
query: Query!
}
"
}"
`;
Loading

0 comments on commit 8193b3c

Please sign in to comment.