Created
April 28, 2020 12:14
-
-
Save beerose/f40771d37fcf681e18679521dea61fb7 to your computer and use it in GitHub Desktop.
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
module.exports = { | |
"schema": [ | |
{ | |
"https://<YOUR_GRAPHQL_SERVICE>/graphql": { | |
"headers": {} | |
} | |
} | |
], | |
"documents": [ | |
"./src/**/*.tsx", | |
"./src/**/*.ts" | |
], | |
"overwrite": true, | |
"generates": { | |
"./src/generated/graphql.tsx": { | |
"plugins": [ | |
"typescript", | |
"typescript-operations", | |
"typescript-react-apollo" | |
], | |
"config": { | |
"skipTypename": false, | |
"withHooks": true, | |
"withHOC": false, | |
"withComponent": false | |
} | |
}, | |
"./graphql.schema.json": { | |
"plugins": [ | |
"introspection" | |
] | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment