Created
February 19, 2020 04:21
-
-
Save seandearnaley/4929ddfb9b60ddb4ef98b6cfaba267e1 to your computer and use it in GitHub Desktop.
codegen.yml
This file contains hidden or 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 | |
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