I have the following Python module that implements Graphene. The problem is that resolvers that call other methods of the class raise this error: The line that rises the error is: if self.validate_path(path): I don’t know why, if method validate_path() is in the same class that the method that calls it. Answer This is because Graphene considering all resolver methods
Tag: graphene-python
How to use a django abstract class with graphene-django?
I’m trying to have a unique interface for two concrete classes that are similar and inherit from a common abstract class. My django model classes: My graphene-django api: When querying the graphql mutation corresponding to CreateMetadata, the metadata concrete class is successfully created. ;-) The problem is that when the query asks for the created concrete Metadata in the result
Error in graphQL python example code
I am starting working on GraphQL and as I am from python background I am using GraphQL with Python. I followed the steps provided here Link but I am still facing issues. Please, help me resolve the issue. Answer You are not giving much information here, maybe the code that triggers the error would be helpful, but googling I found
Graphene Mutation error, fields must be a mapping (dict / OrderedDict)
I’m starting to wrap my head around with GraphQl/Graphene. I’m building a schema connected to a MongoDB. All seems to work so far except mutations. I’ve been following the example here and here without luck. Can someone point me towards what I’m doing wrong? Thanks in advance. The code above generates this error: AssertionError: CreateAddress fields must be a mapping