Skip to content

Commit

Permalink
Remove non-null restriction on clientMutationId field definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
RusticFlare authored and bbakerman committed Nov 15, 2017
1 parent c56ea75 commit 31b16d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/graphql/relay/Relay.java
Expand Up @@ -181,14 +181,14 @@ public GraphQLFieldDefinition mutationWithClientMutationId(String name, String f
.name(name + "Input")
.field(newInputObjectField()
.name("clientMutationId")
.type(new GraphQLNonNull(GraphQLString)))
.type(GraphQLString))
.fields(inputFields)
.build();
GraphQLObjectType outputType = newObject()
.name(name + "Payload")
.field(newFieldDefinition()
.name("clientMutationId")
.type(new GraphQLNonNull(GraphQLString)))
.type(GraphQLString))
.fields(outputFields)
.build();

Expand Down

0 comments on commit 31b16d4

Please sign in to comment.