You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/production-app/schema.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ export function getSchema(): GraphQLSchema {
32
32
id: {
33
33
description: "A globally unique opaque identifier for a node. Can be used to fetch the the\nnode with the `node` or `nodes` fields.\n\nSee: https://graphql.org/learn/global-object-identification/",
34
34
name: "id",
35
-
type: GraphQLID
35
+
type: newGraphQLNonNull(GraphQLID)
36
36
}
37
37
};
38
38
}
@@ -55,7 +55,7 @@ export function getSchema(): GraphQLSchema {
55
55
id: {
56
56
description: "A globally unique opaque identifier for a node. Can be used to fetch the the\nnode with the `node` or `nodes` fields.\n\nSee: https://graphql.org/learn/global-object-identification/",
57
57
name: "id",
58
-
type: GraphQLID,
58
+
type: newGraphQLNonNull(GraphQLID),
59
59
resolve(source){
60
60
returnpostIdResolver(source);
61
61
}
@@ -170,7 +170,7 @@ export function getSchema(): GraphQLSchema {
170
170
id: {
171
171
description: "A globally unique opaque identifier for a node. Can be used to fetch the the\nnode with the `node` or `nodes` fields.\n\nSee: https://graphql.org/learn/global-object-identification/",
172
172
name: "id",
173
-
type: GraphQLID,
173
+
type: newGraphQLNonNull(GraphQLID),
174
174
resolve(source){
175
175
returnuserIdResolver(source);
176
176
}
@@ -225,7 +225,7 @@ export function getSchema(): GraphQLSchema {
225
225
id: {
226
226
description: "A globally unique opaque identifier for a node. Can be used to fetch the the\nnode with the `node` or `nodes` fields.\n\nSee: https://graphql.org/learn/global-object-identification/",
0 commit comments