383 questions
0 votes
1 answer
56 views
Custom Connection usage in graphene_django
I have a variation of the problem described here: Using DjangoFilterConnectionField with custom Connection in graphene_django The modified problem is as follows: Lets say I have a Django model class '...
0 votes
0 answers
20 views
Custom GraphQL String Field Parameter
I'm required to sanitize all my inputs coming in via the GraphQL endpoint and remove potential malicious stuff (No the Django build-in mechanism are not enough, it shall be actively removed). As I do ...
0 votes
0 answers
21 views
How to create graphql type for a django model which has many-to-many field
I have django model named profiles. It has some basic fields and many-to-many field followers. This field contains a list of followers and following peoples class Profile(models.Model): user = ...
0 votes
0 answers
37 views
Django - Filtering on annotated count field returns unexpected values
I have a function that filters a Django queryset on the number of linked objects. Used inside a graphene-django project, it allows me to dynamically create filter fields for a bunch of objects without ...
2 votes
0 answers
96 views
Issues with Object Initialization after Graphene Upgrade (3.0.0)
I've upgraded graphene version from v2.1.8 to v3.0.0 and I'm encountering issues with object initialization. After upgrading, my ObjectType subclasses are no longer properly initialized, and I'm ...
0 votes
1 answer
190 views
Graphene django. Get error: String cannot represent value '(value, )' after mutation attempt
I'm new to graphene library and make updating mutation as was in documentation. Also I looked at this video about CRUD : https://youtu.be/C-EfYVXShLE?si=uksgjJEuavU1k9GW I thought, that problem was in ...
0 votes
0 answers
59 views
Django puts AND clause to lookup "in"
Django 4.2 together with graphene-django filters is making my query return empty results class ExampleFilterSet(FilterSet): label__name__in = StringInFilter(method="filter_labels") ...
2 votes
1 answer
149 views
GraphQLResolveInfo' object has no attribute 'field_asts'"
So I am using graphene-django==3.1.2, which didn't let me importfrom graphql import ResolveInfo . Therefore, I used from graphql import GraphQLResolveInfo as ResolveInfo However the error I see now is ...
1 vote
1 answer
32 views
Graphene field return null in answer even if exception was raised
I'm using Django + GraphQL to build a backend for my project. I have a User model defined in my models.py which have many fields including for instance email and telephone defined in the following ...
2 votes
0 answers
69 views
Upgrade graphene-django to v3: 'Int cannot represent non-integer value"
I'm trying to upgrade graphene-django from 2.15.0 to 3.2.0. After some fixes, I could get it to work, but while testing with the front-end, I start detecting errors of the type: "Variable '$...
1 vote
0 answers
80 views
400 Bad Request in Apollo Client querying Django Backend
I'm getting the following error when I attempt to make a GraphQL query using Apollo Client in my React frontend from my Django/Django Rest/Graphene Backend. I have also gotten some CORS errors so I ...
1 vote
0 answers
46 views
Django graphene performance issue not related to the db but to the rendering
In Sentry APM I am able to see that most of the time spent was in the view.render I am assuming that this part is where the result from the db are being formatted but can't understand why it is taking ...
0 votes
0 answers
96 views
Django inconsistent responses with graphene-django and django-multitenant custom set_current_tenant middleware
I've a django-multitenant SAAS with this tenant model: class Company(TenantModel): name = models.CharField( max_length=100, unique=True ) slug = AutoSlugField( ...
2 votes
0 answers
474 views
How can I use django-filter's DateTimeFromToRangeFilter with Graphene?
I'm attempting to use an instance of django-filter's DateTimeFromToRangeFilter in conjunction with a custom FilterSet. However, this does not work when I attempt to do the following: class ...
1 vote
0 answers
52 views
'function' object has no attribute '__func__' issue with graphene django
TypeError: UserProcessOptionsNode fields cannot be resolved. 'function' object has no attribute '__func__' class UserProcessOptionsNode(DjangoObjectType): client_configuration = GenericScalar() ...