Skip to content

Commit 3d33e92

Browse files
committed
Fixed inputobjecttypes in test
1 parent 8d20d40 commit 3d33e92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/starwars/schema.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
GraphQLID,
55
GraphQLNonNull,
66
GraphQLObjectType,
7+
GraphQLInputObjectField,
78
GraphQLSchema,
89
GraphQLString,
910
GraphQLField
@@ -256,10 +257,10 @@ def mutateAndGetPayload(data, *_):
256257
shipMutation = mutationWithClientMutationId(
257258
'IntroduceShip',
258259
inputFields={
259-
'shipName': GraphQLField(
260+
'shipName': GraphQLInputObjectField(
260261
GraphQLNonNull(GraphQLString)
261262
),
262-
'factionId': GraphQLField(
263+
'factionId': GraphQLInputObjectField(
263264
GraphQLNonNull(GraphQLID)
264265
)
265266
},

0 commit comments

Comments
 (0)