xenial-black
xenial-black5mo ago

use graphql custom query in hasura data provider

Is is possible to use custom graphql query instead of meta.fields with hasura data provider ?
4 Replies
kapa.ai
kapa.ai5mo ago
Hi @lecroissant0464. 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. The extracts provided do not contain specific information about using custom GraphQL queries with the Hasura data provider in Refine. However, the Refine documentation (https://refine.dev/docs/examples/data-provider/hasura) does mention that you can connect to your Hasura database and create special queries. It might be possible to use custom GraphQL queries, but the specifics are not detailed in the extracts. For more detailed information, you might want to check the Refine documentation (https://refine.dev/docs/examples/data-provider/hasura) or the Hasura data provider source code (https://github.com/refinedev/refine/tree/master/packages/hasura) directly. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5mo ago
<@798191015391395866> kapa.ai is still learning and improving, please let us know how it did by reacting below
other-emerald
other-emerald5mo ago
Hello @lecroissant0464 Will be possible after this PR merged https://github.com/refinedev/refine/pull/5478 🐣
GitHub
feat(hasura): migrate to gql mutation and gql query examples by ali...
@refinedev/hasura: Prioritize gqlQuery and/or gqlMutation fields if provided. examples/data-provider-hasura: Updated to use gql queries/mutations. https://refine.dev/docs/data/packages/hasura/ clo...
xenial-black
xenial-black5mo ago
Thats great ! Thanks