File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def test_mutation_arguments():
37
37
assert 'input' in schema .T (ChangeNumber .arguments )
38
38
inner_type = ChangeNumber .input_type
39
39
client_mutation_id_field = inner_type ._meta .fields_map [
40
- 'client_mutation_id ' ]
40
+ 'clientMutationId ' ]
41
41
assert issubclass (inner_type , graphene .InputObjectType )
42
42
assert isinstance (client_mutation_id_field .type , graphene .NonNull )
43
43
assert isinstance (client_mutation_id_field .type .of_type , graphene .String )
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ def get_edge_type(cls):
142
142
143
143
144
144
class MutationInputType (InputObjectType ):
145
- client_mutation_id = String (required = True )
145
+ clientMutationId = String (required = True )
146
146
147
147
148
148
class RelayMutationMeta (MutationMeta ):
@@ -162,7 +162,7 @@ def construct_arguments(cls, items):
162
162
163
163
164
164
class ClientIDMutation (six .with_metaclass (RelayMutationMeta , Mutation )):
165
- client_mutation_id = String (required = True )
165
+ clientMutationId = String (required = True )
166
166
167
167
class Meta :
168
168
abstract = True
@@ -171,6 +171,6 @@ class Meta:
171
171
def mutate (cls , instance , args , info ):
172
172
input = args .get ('input' )
173
173
payload = cls .mutate_and_get_payload (input , info )
174
- client_mutation_id = input .get ('client_mutation_id' )
175
- setattr (payload , 'client_mutation_id ' , client_mutation_id )
174
+ client_mutation_id = input .get ('clientMutationId' ) or input . get ( ' client_mutation_id' )
175
+ setattr (payload , 'clientMutationId ' , client_mutation_id )
176
176
return payload
You can’t perform that action at this time.
0 commit comments