We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 784e71b commit c680b6cCopy full SHA for c680b6c
src/utilities/buildASTSchema.js
@@ -226,13 +226,10 @@ export class ASTDefinitionBuilder {
226
227
getWrappedType(node: TypeNode): GraphQLType {
228
if (node.kind === Kind.LIST_TYPE) {
229
- return GraphQLList(this.getWrappedType(node.type));
+ return new GraphQLList(this.getWrappedType(node.type));
230
}
231
if (node.kind === Kind.NON_NULL_TYPE) {
232
- return GraphQLNonNull(
233
- // Note: GraphQLNonNull constructor validates this type
234
- (this.getWrappedType(node.type): any),
235
- );
+ return new GraphQLNonNull(this.getWrappedType(node.type));
236
237
return this.getNamedType(node);
238
0 commit comments