import { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
  schema: ['../server/schema.graphql', './local.graphql'],
  documents: ['src/**/*.vue', 'src/**/*.ts'],
  generates: {
    'src/__generated__/': {
      preset: 'client',
      plugins: [],
      presetConfig: {
        useTypeImports: true,
      },
    },
  },
  ignoreNoDocuments: true,
};
export default config;
