Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Allow fragments to passed to hooks #122

Open
chrisvdm opened this issue Aug 10, 2023 · 1 comment
Open

Feature: Allow fragments to passed to hooks #122

chrisvdm opened this issue Aug 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@chrisvdm
Copy link
Owner

Problem: Users arent able to shape the replies coming back from api side via hooks

Solution: Pass Fragments directly to hooks

const { retrieveStripeCustomer } = useStripeCustomer({
    retrieveFragment: gql`
      fragment CustomerFragment on StripeCustomer {
        id
        name
        email
      }
    `,
  })

Already able to pass fragments on useStripeCustomer and useStripeSubscriptions

@chrisvdm chrisvdm added the enhancement New feature or request label Aug 10, 2023
@chrisvdm
Copy link
Owner Author

Add docs for using <Cells/> for cases not catered for with plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant