Build Nuxt 4 client cabinet with Apollo and GraphQL flows

This commit is contained in:
Ruslan Bakiev
2026-03-30 21:41:19 +07:00
parent 0220041129
commit 79d6138cca
36 changed files with 14418 additions and 1 deletions

18
codegen.ts Normal file
View File

@@ -0,0 +1,18 @@
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;