0.0.1-alpha.3 • Published 5 years ago
@n1ru4l/graphql-codegen-relay-plugin v0.0.1-alpha.3
@n1ru4l/graphql-codegen-relay-plugin
This is alpha software, use it at your own risk, functionality might change!
Description
GraphQL Codegen Plugin for bringing the benefits of relay to react-apollo.
Current List of Features
- Optimize Queries
- Inline Fragments
- Flatten Transform
- Skip Redundant Node Transform
- FragmentArguments
Install Instructions
yarn add -D -E @n1ru4l/graphql-codegen-relay-plugin
Usage Instructions
codegen.yml
overwrite: true
schema: schema.graphql
generates:
src/generated-types.tsx:
documents: "src/documents/**/*.graphql"
config:
withHOC: true
withComponent: true
withHooks: true
withFragmentContainer: true
plugins:
- "typescript"
- "@n1ru4l/graphql-codegen-relay-plugin"
- "typescript-operations"
- "typescript-react-apollo"