-
-
Save adriancbo/fd3ada90d2b7aef403c5e0d3a00ea7d4 to your computer and use it in GitHub Desktop.
codegen.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
overwrite: true | |
schema: "http://localhost:4000/graphql" | |
documents: src/**/*.graphql | |
generates: | |
src/generated/graphql.ts: | |
hooks: | |
afterOneFileWrite: | |
- prettier --write | |
plugins: | |
- "typescript" | |
- "typescript-operations" | |
- "typescript-react-apollo" | |
src/generated/fragments.js: | |
hooks: | |
afterOneFileWrite: | |
- prettier --write | |
plugins: | |
- "fragment-matcher" | |
./graphql.schema.json: | |
plugins: | |
- "introspection" | |
config: | |
apolloClientVersion: 3 | |
withHooks: true | |
withHOC: false | |
withComponent: false | |
gqlImport: "@apollo/client#gql" | |
apolloReactCommonImportFrom: "@apollo/client" | |
apolloReactComponentsImportFrom: "@apollo/client" | |
apolloReactHocImportFrom: "@apollo/client" | |
apolloReactHooksImportFrom: "@apollo/client" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment