Support for Elide GraphQL enpoints #1785
Replies: 2 comments
-
Hey @chirdeeptomar 👋, |
Beta Was this translation helpful? Give feedback.
-
Hey @chirdeeptomar 👋, const query = gql.query({
operation: "group",
variables: { filter: "name=='Java*'", sort: "name" },
fields: [
{
edges: [
{
node: ["name", "commonName", "description"],
},
],
},
],
}); output; {
query: 'query ($filter: String, $sort: String) { group (filter: $filter, sort: $sort) { edges { node { name, commonName, description } } } }',
variables: { filter: "name=='Java*'", sort: 'name' }
} If you want to create Hasura (GraphQL): https://github.com/pankod/refine/blob/master/packages/hasura/src/index.ts#L69 I hope it will be useful for you 🚀 |
Beta Was this translation helpful? Give feedback.
-
I use an Open Source framework called [Elide] (https://elide.io/pages/guide/v6/01-start.html) for building API's in GraphQL and REST. I am building the front-end using Refine to query the GraphQL server.
Elide query conventions are different than how the graphql provider currently works, I would like to write custom GraphQL queries but still benefit from Refine's capabilities like sorting, filtering etc. Essentially I would like to override some of the way graphql provider works.
Sample Query:
Output:
Not sure how much work is to write a Elide Data Provider.
Beta Was this translation helpful? Give feedback.
All reactions