Skip to content

Commit 9e55efd

Browse files
committed
Merge pull request #2 from jhgg/patch-1
InputFields need to be of type GraphQLInputObjectField, not GraphQLField
2 parents ab8eb49 + 40b3007 commit 9e55efd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphql_relay/mutation/mutation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from graphql.core.type import (
22
GraphQLArgument,
3+
GraphQLInputObjectField,
34
GraphQLInputObjectType,
45
GraphQLNonNull,
56
GraphQLObjectType,
@@ -10,7 +11,7 @@
1011

1112
def mutationWithClientMutationId(name, inputFields, outputFields, mutateAndGetPayload):
1213
augmentedInputFields = dict(inputFields,
13-
clientMutationId=GraphQLField(GraphQLNonNull(GraphQLString))
14+
clientMutationId=GraphQLInputObjectField(GraphQLNonNull(GraphQLString))
1415
)
1516
augmentedOutputFields = dict(outputFields,
1617
clientMutationId=GraphQLField(GraphQLNonNull(GraphQLString))

0 commit comments

Comments
 (0)