Describe the bug
The script generate all the types, also the one not included in the specified documents.
To Reproduce
Run graphql-codegen --config codegen.js
My codegen.yml config file:
module.exports = {
schema: {
['...']: {
headers: {
'content-type': 'application/json'
}
}
},
documents: ['./src/**/*.tsx', './src/**/*.ts'],
overwrite: true,
generates: {
'./api/index.ts': {
plugins: ['typescript', 'typescript-operations'],
config: {
skipTypename: true,
withHooks: true,
withHOC: false,
withComponent: false
}
}
}
};
Expected behavior
Only the queries in my documents should be generated
Describe the bug
The script generate all the types, also the one not included in the specified documents.
To Reproduce
Run
graphql-codegen --config codegen.jsMy
codegen.ymlconfig file:Expected behavior
Only the queries in my documents should be generated