19 lines
525 B
TypeScript
19 lines
525 B
TypeScript
import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
|
|
const config: CodegenConfig = {
|
|
schema: './graphql/schema.graphql',
|
|
documents: ['./graphql/operations/**/*.graphql'],
|
|
generates: {
|
|
'./app/composables/graphql/generated.ts': {
|
|
plugins: ['typescript', 'typescript-operations', 'typescript-vue-apollo'],
|
|
config: {
|
|
withCompositionFunctions: true,
|
|
vueApolloComposableImportFrom: '@vue/apollo-composable',
|
|
useTypeImports: true,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|