Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
22 views

graphql query using django for xml data [closed]

How can we implement GraphQL query that allows querying values from any selected set of elements from the below xml file using django? <encspot> <file type="audio"> <...
twinklets's user avatar
0 votes
0 answers
21 views

How do I make ApolloClient use multipart/form-data when sending requests to django graphql endpoint

I am writing a Django/GraphQL/Apollo/Vuetify app, and I am struggling to navigate the CORS/CRSF consequences. As far as I understand, I think that Django and GraphQL are doing the right thing on the ...
spierepf's user avatar
  • 2,856
0 votes
1 answer
28 views

get the lastest record of an object

I have two models: Cat (id, name) CatRecords (id, cat_id, status, created_time) Each day, a cat have one record about the status of the cat I want to get all the cats and the latest record of each, ...
bao.le's user avatar
  • 154
0 votes
0 answers
10 views

How can anonymous users interact with Vue3 frontend, using GraphQL and Django backend?

While building a blog app, I want to create a user interaction such as like, dislike and share. However, I want the users to be anonymous (not authenticated). How can I achieve this to display counts ...
Kaleab Woldemariam's user avatar
0 votes
0 answers
38 views

How to design a separate authorization server using the ROPC OAuth2 flow?

I am implementing a user management system where the user can register (using username and password), login and perform CRUD operations. The tech-stack that I am using to achieve this is django and ...
Sankara Bharadwaj's user avatar
0 votes
0 answers
19 views

graphene-django get_node vs get_queryset

I'm currently getting acquainted with graphene-django and there's one aspect of it I'm not quite getting my head around. I would like to let my users use GraphQL to query our database. I would like ...
Overgrown's user avatar
0 votes
1 answer
54 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 ...
AndyFlight's user avatar
0 votes
0 answers
14 views

While mutating shares of a Post, I get "Variable '$postId' got invalid value {'isTrusted': True, '_vts': 1714830156331} ID cannot represent value

Using Vue 3 and Django backend using Graphql, I want to count button click shares.The problem is referring to PostId of Post model in django and graphene-django gives me error: "Variable '$postId'...
Kaleab Woldemariam's user avatar
1 vote
0 answers
51 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 ...
Jolly's user avatar
  • 184
0 votes
0 answers
219 views

Python: how to handle uploading and zipping large files into Minio

I have a Django GraphQL API. I'm trying to implement an endpoint that would download files from external urls, upload them to Minio bucket, create a Zip-file from the files and return the Zip-file to ...
lr_optim's user avatar
  • 371
0 votes
0 answers
32 views

Django+Graphene Error on Unknown argument while writing mutation

I am getting this as an error: My mutations.py code looks like this: import graphene from .types import ApplicationType from api.graphql.helpers.save_application_helper import save_application_helper ...
Rishabh Bhambani's user avatar
1 vote
0 answers
42 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 ...
Suerg's user avatar
  • 133
0 votes
1 answer
46 views

Vue3 is fetching data from Django graphql but does not display the component on webpage?

While using Vue3 to fetch data from Django graphql backend, chrome console shows the fetched data as array: (3) [{…}, {…}, {…}] 0 : {__typename: 'PostType', title: 'That Bum.', subtitle: '', ...
Kaleab Woldemariam's user avatar
0 votes
0 answers
26 views

Find graphene mutation/query from WSGIRequest it self

I have a middleware class that's before the request reaches the code itself, I want to figure out what mutation/query is begin called here class CustomMiddleware: def __init__(self, get_response): ...
ponez's user avatar
  • 13
2 votes
0 answers
119 views

DRF and GraphQL Mesh Integration using OpenAPI method?

I am relatively new to graphql-mesh and trying to understand. I have connected my graphql version of DRF to mesh and it worked but when I am trying to connect it using OpenAPI I get errors like ...
Srijan113's user avatar

15 30 50 per page
1
2 3 4 5
31