- GraphQL Code Generator
- [GraphQL Hooks](https://github.com/nearform/graphql-hooks
Supports all hooks:
- useQuery
- useMutation
- useSubscription
yarn add @stefanoruth/graphql-codegen-graphql-hooks
or
npm install @stefanoruth/graphql-codegen-graphql-hooks
Add the plugin to youre codegen.yml config
schema: 'my-schema.graphql'
generates:
output.ts:
plugins:
- 'typescript'
- 'typescript-operations'
- '@stefanoruth/graphql-codegen-graphql-hooks'