18 lines
387 B
TypeScript
18 lines
387 B
TypeScript
import { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
const config: CodegenConfig = {
|
|
schema: ['../server/schema.graphql', './local.graphql'],
|
|
documents: ['src/**/*.vue'],
|
|
generates: {
|
|
'src/__generated__/': {
|
|
preset: 'client',
|
|
plugins: [],
|
|
presetConfig: {
|
|
useTypeImports: true
|
|
},
|
|
},
|
|
},
|
|
ignoreNoDocuments: true
|
|
};
|
|
export default config;
|