redwoodjs-stripe
redwoodjs-stripe copied to clipboard
Feature: Allow fragments to passed to hooks
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