'How can I serialise graphene input object type
I am trying to serialise graphene instances of graphene input object types as follows:
class MyType(graphene.InputObjectType):
id = graphene.String()
name = graphene.String()
obj = MyType._meta.container(id="test", name="hello")
pickle.dumps(obj)
Pickling throws the following error: Can't pickle attribute lookup MyType on graphene.types.inputobjecttype failed
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
