How to pass variables for graphql query in specific format?
This is my mutation
this is my data provider
but it seems that graphqlDataProvider expects the variable in this format: { input: data { .... } }
i don't want to nest it inside data, how can i fix it
4 Replies
Hi @Supa hot fire. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the Refine GraphQL documentation (https://refine.dev/docs/guides-concepts/data-fetching/#graphql) for more information on how to handle GraphQL queries and mutations with Refine. This might provide some insights into how to structure your variables for the
graphqlDataProvider
.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@541506908301819930> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
adverse-sapphireOP•3mo ago
i checked that sources but the examples given are not passing in the required structure,
@kapa.ai
Let me check the knowledge base for you again. One moment! :books:
Sorry @Supa hot fire, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?