Skip to content

Instantly share code, notes, and snippets.

@beerose

beerose/codegen.js

Created Apr 28, 2020
Embed
What would you like to do?
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