Use this tag for questions about Graphene-Django, integration features of Graphene (a framework for building GraphQL APIs) that are designed to make working with Django simple.
Questions tagged [graphene-django]
386 questions
0
votes
1 answer
How to return List of QuerySets in graphql query as separate list elements?
The problem I am facing is that I have custom_filter of MyModel which return the list of like
[]>, , ,]>]
The object type
class MyModelNode(DjangoObjectType):
…

user10095818
- 121
- 1
- 1
- 8
0
votes
1 answer
could not pass custom response
when I am querying for the job_seeker profile and If there is no job_seeker data then I was getting an error JobSeeker models query does not exist. I instead want to pass empty list if there is no data. For this, i tried the following way but i am…

Serenity
- 3,884
- 6
- 44
- 87
0
votes
0 answers
auth is returned as none when trying to log in user when signing up
I am trying to solve the use case where when user signs up then the user is automatically logged in and return the token of that user so that i can that token in cookies from frontend. However, I get issue "Email already registered". when i debug my…

milan
- 2,409
- 2
- 34
- 71
0
votes
1 answer
graphene nodes for model inheriting from abstract superclass
I have a schema of 2 classes:
class Anomaly(DjangoObjectType):
class Meta:
model = models.Anomaly
class Batch(LoggedModel):
class Meta:
model = models.Batch
where LoggedModel is
class LoggedModel(DjangoObjectType):
…

Daniele Bernardini
- 1,516
- 1
- 12
- 29
0
votes
0 answers
"[GraphQLError('Unknown argument "offset" on field "authors" of type "Query"" when using GraphQL offset parameter to query author table
When I use GraphQL offset to query author table, I get the error:
[GraphQLError('Unknown argument "offset" on field "authors" of type "Query"
I booked up some website, it generally said that just use the offset parameter, it works. Could you help…

836304831
- 19
- 3
-1
votes
2 answers
graphene code run before django data migrations
I wrote a piece of code that generates graphene input object type dynamically from the database. when I try to run
./manage.py migrate
that code runs before the migration and caused
django.db.utils.ProgrammingError
I have the same issue in run the…
-1
votes
1 answer
Query multiple models in Graphene Django
I have multiple models in Django named model1, model2, model3.
Each model has the same fields and the field id is the primary key.
I want to query this database using GraphQL. The query structure should be like below.
query{
pod(model:…

Sambhav Jain
- 13
- 2
-1
votes
1 answer
How to write graphQL query from react using fetch api which support pagination?
Information:
I am using graphene-Django based backed
Using Relay Node-based query
Tasks that I can perform:
Write REST-based CRUD operations using fetch API in react.
Simple GraphQL queries that involve fetching a list or single item from the…

Pawan Kumar
- 49
- 2
- 7
-1
votes
1 answer
Retrieve relationship properties with graphene-django and graphql from a graph (neo4j) database
I'm trying to create a simple application (to create a graphql api using django and python). It's going well but I'm stuck with 1 problem and i have no idea how to go about it (I've been searching for days, but I simply give up) so I was hoping…

sarita
- 1
-1
votes
4 answers
Graphene Django getting items
I have a Query:
class Query(object):
all_articles = graphene.List(ArticleType)
category_articles = graphene.List(ArticleType, category = graphene.String())
def resolve_all_articles(self, info, **kwargs):
return Article.objects.all()
def…

Exoriri
- 327
- 3
- 21
-1
votes
1 answer
The connection problem in the graphql-flutter mobile app and the server created by Graphene-Django
I have a simple graphql-server created using the Graphene-Django package. Now I can test the query and mutation successfully in the desktop browser at http://127.0.0.1:8000/graphql.
For testing the query and mutation in the mobile app, I made a…

Hossein Vejdani
- 961
- 8
- 19