Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit c2e7f90

Browse files
committed
fix(packages): adds GraphQLNonNull to the modelType for ResultList.items
1 parent 34a932e commit c2e7f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graphback-codegen-schema/src/definitions/schemaDefinitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export const createModelListResultType = (modelType: GraphQLObjectType) => {
351351
name: `${modelType.name}ResultList`,
352352
fields: {
353353
items: {
354-
type: GraphQLNonNull(GraphQLList(modelType))
354+
type: GraphQLNonNull(GraphQLList(GraphQLNonNull(modelType)))
355355
},
356356
offset: { type: GraphQLInt },
357357
limit: { type: GraphQLInt },

0 commit comments

Comments
 (0)