17 lines
447 B
JavaScript
17 lines
447 B
JavaScript
/** @type {import('@graphql-codegen/cli').CodegenConfig} */
|
|
module.exports = {
|
|
documents: ['./operations/*.graphql'],
|
|
generates: {
|
|
'./types/operations.generated.ts': {
|
|
config: {
|
|
avoidOptionals: true,
|
|
onlyOperationTypes: true,
|
|
useTypeImports: true,
|
|
},
|
|
plugins: ['typescript', 'typescript-operations', 'typed-document-node'],
|
|
},
|
|
},
|
|
overwrite: true,
|
|
schema: require('./config.cjs').url,
|
|
};
|