Closed dsuess closed 4 years ago
Say I have a mutation with the following type in GraphQL
Mutation.update( a: JSON ): ...
then the GraphQL mutation generated by sgqlc is invalid
>>> op = Operation(Mutation) >>> op.update(a={'test': 123}) >>> print(op) mutation { update(a: {"test": 123}) { } }
whereas the valid GraphQL mutation would look like this (note the missing quotes):
mutation { update(a: {test: 123}) { } }
Am I doing sth wrong here?
Sorry, I just noted that JSON was a custom defined type in our system and not standard GraphQL
JSON
Say I have a mutation with the following type in GraphQL
then the GraphQL mutation generated by sgqlc is invalid
whereas the valid GraphQL mutation would look like this (note the missing quotes):
Am I doing sth wrong here?