absent-sapphire
absent-sapphireโ€ข3y ago

custom graphql query to fetch data from the backend

Here is my custom graphql query --- const UNITS_AGGREGATE = gqlquery { organizations { id organization_units_aggregate { aggregate { count(distinct: true) } } } }; I need to pass it to the organization table to fetch the number of distinct organizations_unit. Which hook i need to use and how to pass it. ๐Ÿ‘‹
4 Replies
adverse-sapphire
adverse-sapphireโ€ข3y ago
Hey @coops8 Which data provider are you using?
absent-sapphire
absent-sapphireOPโ€ข3y ago
Hasura
adverse-sapphire
adverse-sapphireโ€ข3y ago
We use this https://github.com/atulmy/gql-query-builder library for request.
adverse-sapphire
adverse-sapphireโ€ข3y ago
GitHub
refine/index.ts at next ยท refinedev/refine
Build your React-based CRUD applications, without constraints. - refine/index.ts at next ยท refinedev/refine

Did you find this page helpful?