You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My problem: I have a method foo that takes an InputObjectType as input and does some logic, from those InputObjectType, I need to create, dynamically in the backend, other InputObjectType that will also be passed to the foo method.
When I try to create the InputObjectType, I get a type String is not json serializable error.
Is what am saying possible ? or should refactor my foo method to take dicts or something else ?
deffoo(input: SomeInputObjectType):
some_logic(input.some_attribute)
defmutate(..., input1):
# I want to create object input2 that can be passed to the foo method along with input1# input2 = InputObjectType(...)foo(input1)
foo(input2)
The text was updated successfully, but these errors were encountered:
Hey there, can you please provide a MWE to reproduce the error? Usually, you should be able to use your input types just like any other input fields in mutations.
My problem: I have a method foo that takes an InputObjectType as input and does some logic, from those InputObjectType, I need to create, dynamically in the backend, other InputObjectType that will also be passed to the foo method.
When I try to create the InputObjectType, I get a type String is not json serializable error.
Is what am saying possible ? or should refactor my foo method to take dicts or something else ?
The text was updated successfully, but these errors were encountered: