Skip to content

Instantly share code, notes, and snippets.

@beerose
Created April 28, 2020 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beerose/f40771d37fcf681e18679521dea61fb7 to your computer and use it in GitHub Desktop.
Save beerose/f40771d37fcf681e18679521dea61fb7 to your computer and use it in GitHub Desktop.
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