From 1b2f08609f0a2473ea857f8a73cea7cdec111210 Mon Sep 17 00:00:00 2001 From: Suresh KUMAR Mukhiya Date: Fri, 17 May 2019 22:09:32 +0200 Subject: [PATCH 1/5] Remove `GraphQLNonNull` --- .../inputs/questionnaireitemansweroption.input.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/resources/4_0_0/inputs/questionnaireitemansweroption.input.js b/src/resources/4_0_0/inputs/questionnaireitemansweroption.input.js index 0c1ed0f5..e5fc3195 100644 --- a/src/resources/4_0_0/inputs/questionnaireitemansweroption.input.js +++ b/src/resources/4_0_0/inputs/questionnaireitemansweroption.input.js @@ -43,7 +43,7 @@ module.exports = new GraphQLInputObjectType({ "A potential answer that's allowed as the answer to this question.", }, valueInteger: { - type: new GraphQLNonNull(GraphQLInt), + type: GraphQLInt, description: "A potential answer that's allowed as the answer to this question.", }, @@ -53,7 +53,7 @@ module.exports = new GraphQLInputObjectType({ "A potential answer that's allowed as the answer to this question.", }, valueDate: { - type: new GraphQLNonNull(DateScalar), + type: DateScalar, description: "A potential answer that's allowed as the answer to this question.", }, @@ -63,7 +63,7 @@ module.exports = new GraphQLInputObjectType({ "A potential answer that's allowed as the answer to this question.", }, valueTime: { - type: new GraphQLNonNull(TimeScalar), + type: TimeScalar, description: "A potential answer that's allowed as the answer to this question.", }, @@ -73,17 +73,17 @@ module.exports = new GraphQLInputObjectType({ "A potential answer that's allowed as the answer to this question.", }, valueString: { - type: new GraphQLNonNull(GraphQLString), + type: GraphQLString, description: "A potential answer that's allowed as the answer to this question.", }, valueCoding: { - type: new GraphQLNonNull(require('./coding.input.js')), + type: new require('./coding.input.js'), description: "A potential answer that's allowed as the answer to this question.", }, valueReference: { - type: new GraphQLNonNull(GraphQLString), + type: GraphQLString, description: "A potential answer that's allowed as the answer to this question.", }, From a37f79db4b992e62ca0433bbb89e083605c5a6a9 Mon Sep 17 00:00:00 2001 From: Suresh KUMAR Mukhiya Date: Fri, 17 May 2019 22:10:21 +0200 Subject: [PATCH 2/5] Remove GraphQLNonNull --- .../questionnaireitemenablewhen.input.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/resources/4_0_0/inputs/questionnaireitemenablewhen.input.js b/src/resources/4_0_0/inputs/questionnaireitemenablewhen.input.js index 92372f11..fa4a3be9 100644 --- a/src/resources/4_0_0/inputs/questionnaireitemenablewhen.input.js +++ b/src/resources/4_0_0/inputs/questionnaireitemenablewhen.input.js @@ -74,7 +74,7 @@ module.exports = new GraphQLInputObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerDecimal: { - type: new GraphQLNonNull(GraphQLFloat), + type: GraphQLFloat, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, @@ -84,7 +84,7 @@ module.exports = new GraphQLInputObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerInteger: { - type: new GraphQLNonNull(GraphQLInt), + type: GraphQLInt, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, @@ -94,7 +94,7 @@ module.exports = new GraphQLInputObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerDate: { - type: new GraphQLNonNull(DateScalar), + type: DateScalar, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, @@ -104,7 +104,7 @@ module.exports = new GraphQLInputObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerDateTime: { - type: new GraphQLNonNull(DateTimeScalar), + type: DateTimeScalar, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, @@ -114,7 +114,7 @@ module.exports = new GraphQLInputObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerTime: { - type: new GraphQLNonNull(TimeScalar), + type: TimeScalar, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, @@ -124,22 +124,22 @@ module.exports = new GraphQLInputObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerString: { - type: new GraphQLNonNull(GraphQLString), + type: GraphQLString, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerCoding: { - type: new GraphQLNonNull(require('./coding.input.js')), + type: require('./coding.input.js'), description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerQuantity: { - type: new GraphQLNonNull(require('./quantity.input.js')), + type: require('./quantity.input.js'), description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerReference: { - type: new GraphQLNonNull(GraphQLString), + type: GraphQLString, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, From 7109c052bc3fd7e47da046cc626fe3c8d4284e14 Mon Sep 17 00:00:00 2001 From: Suresh KUMAR Mukhiya Date: Fri, 17 May 2019 22:16:54 +0200 Subject: [PATCH 3/5] Remove GraphQLNonNull --- .../questionnaireitemansweroption.schema.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/resources/4_0_0/schemas/questionnaireitemansweroption.schema.js b/src/resources/4_0_0/schemas/questionnaireitemansweroption.schema.js index 08fc1426..35fe0f79 100644 --- a/src/resources/4_0_0/schemas/questionnaireitemansweroption.schema.js +++ b/src/resources/4_0_0/schemas/questionnaireitemansweroption.schema.js @@ -44,7 +44,7 @@ module.exports = new GraphQLObjectType({ "A potential answer that's allowed as the answer to this question.", }, valueInteger: { - type: new GraphQLNonNull(GraphQLInt), + type: GraphQLInt, description: "A potential answer that's allowed as the answer to this question.", }, @@ -54,7 +54,7 @@ module.exports = new GraphQLObjectType({ "A potential answer that's allowed as the answer to this question.", }, valueDate: { - type: new GraphQLNonNull(DateScalar), + type: DateScalar, description: "A potential answer that's allowed as the answer to this question.", }, @@ -64,7 +64,7 @@ module.exports = new GraphQLObjectType({ "A potential answer that's allowed as the answer to this question.", }, valueTime: { - type: new GraphQLNonNull(TimeScalar), + type: TimeScalar, description: "A potential answer that's allowed as the answer to this question.", }, @@ -74,18 +74,17 @@ module.exports = new GraphQLObjectType({ "A potential answer that's allowed as the answer to this question.", }, valueString: { - type: new GraphQLNonNull(GraphQLString), + type: GraphQLString, description: "A potential answer that's allowed as the answer to this question.", }, valueCoding: { - type: new GraphQLNonNull(require('./coding.schema.js')), + type: require('./coding.schema.js'), description: "A potential answer that's allowed as the answer to this question.", }, valueReference: { - type: new GraphQLNonNull( - new GraphQLUnionType({ + type: new GraphQLUnionType({ name: 'QuestionnaireitemanswerOptionvalueReference_valueReference_Union', description: @@ -97,7 +96,6 @@ module.exports = new GraphQLObjectType({ } }, }), - ), description: "A potential answer that's allowed as the answer to this question.", }, From bb99908ba32ea3fc5950671e3b346a5f3935586a Mon Sep 17 00:00:00 2001 From: Suresh KUMAR Mukhiya Date: Fri, 17 May 2019 22:20:26 +0200 Subject: [PATCH 4/5] remove unncessary GraphQLNonNull --- .../questionnaireitemenablewhen.schema.js | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/resources/4_0_0/schemas/questionnaireitemenablewhen.schema.js b/src/resources/4_0_0/schemas/questionnaireitemenablewhen.schema.js index 8c194cac..f838dddd 100644 --- a/src/resources/4_0_0/schemas/questionnaireitemenablewhen.schema.js +++ b/src/resources/4_0_0/schemas/questionnaireitemenablewhen.schema.js @@ -75,7 +75,7 @@ module.exports = new GraphQLObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerDecimal: { - type: new GraphQLNonNull(GraphQLFloat), + type: GraphQLFloat, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, @@ -85,7 +85,7 @@ module.exports = new GraphQLObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerInteger: { - type: new GraphQLNonNull(GraphQLInt), + type: GraphQLInt, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, @@ -95,7 +95,7 @@ module.exports = new GraphQLObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerDate: { - type: new GraphQLNonNull(DateScalar), + type: DateScalar, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, @@ -105,7 +105,7 @@ module.exports = new GraphQLObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerDateTime: { - type: new GraphQLNonNull(DateTimeScalar), + type: DateTimeScalar, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, @@ -115,7 +115,7 @@ module.exports = new GraphQLObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerTime: { - type: new GraphQLNonNull(TimeScalar), + type: TimeScalar, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, @@ -125,23 +125,22 @@ module.exports = new GraphQLObjectType({ 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerString: { - type: new GraphQLNonNull(GraphQLString), + type: GraphQLString, description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerCoding: { - type: new GraphQLNonNull(require('./coding.schema.js')), + type: require('./coding.schema.js'), description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerQuantity: { - type: new GraphQLNonNull(require('./quantity.schema.js')), + type: require('./quantity.schema.js'), description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, answerReference: { - type: new GraphQLNonNull( - new GraphQLUnionType({ + type: new GraphQLUnionType({ name: 'QuestionnaireitemenableWhenanswerReference_answerReference_Union', description: @@ -153,7 +152,6 @@ module.exports = new GraphQLObjectType({ } }, }), - ), description: 'A value that the referenced question is tested using the specified operator in order for the item to be enabled.', }, From 32227b110d5da6589359bc4e53d5fa64dfa992cc Mon Sep 17 00:00:00 2001 From: Suresh KUMAR Mukhiya Date: Fri, 17 May 2019 22:26:48 +0200 Subject: [PATCH 5/5] Remove `new` from require construct --- .../4_0_0/inputs/questionnaireitemansweroption.input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/4_0_0/inputs/questionnaireitemansweroption.input.js b/src/resources/4_0_0/inputs/questionnaireitemansweroption.input.js index e5fc3195..2ec52480 100644 --- a/src/resources/4_0_0/inputs/questionnaireitemansweroption.input.js +++ b/src/resources/4_0_0/inputs/questionnaireitemansweroption.input.js @@ -78,7 +78,7 @@ module.exports = new GraphQLInputObjectType({ "A potential answer that's allowed as the answer to this question.", }, valueCoding: { - type: new require('./coding.input.js'), + type: require('./coding.input.js'), description: "A potential answer that's allowed as the answer to this question.", },