select-harlequinS
Refine2y ago
19 replies
select-harlequin

useCustom GraphQL query

Can you show me how to go about setting up useCustom hook for this query? I'm using NestJS-Query a backend.

The query:

export const USER_BUSINESSES = gql`
  query GetUserBusinesses($userId: String!) {
    userBusinesses(userId: $userId) {
      id
      name
    }
  }
`;
Was this page helpful?