diff --git a/src/codegen/schema.js b/src/codegen/schema.js index 9a0e0ead6..deb6b8fe3 100644 --- a/src/codegen/schema.js +++ b/src/codegen/schema.js @@ -236,7 +236,7 @@ Suggestion: add an '!' to the member type of the List, change from '${fieldValue : gqlType.getIn(['name', 'value']) } - _typeFromGraphQl(gqlType, nullable = true) { + _typeFromGraphQl(gqlType, nullable = false) { if (gqlType.get('kind') === 'NonNullType') { return this._typeFromGraphQl(gqlType.get('type'), false) } else if (gqlType.get('kind') === 'ListType') {