18 lines
353 B
TypeScript
18 lines
353 B
TypeScript
import type { CodegenConfig } from '@graphql-codegen/cli'
|
|
|
|
const config: CodegenConfig = {
|
|
overwrite: true,
|
|
schema: 'http://localhost:4000/graphql',
|
|
documents: 'graphql/**/*.graphql',
|
|
generates: {
|
|
'generated/graphql/': {
|
|
preset: 'client',
|
|
presetConfig: {
|
|
fragmentMasking: false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
export default config
|