feature: add mgraphql codegen

This commit is contained in:
2025-04-29 02:22:06 +08:00
parent 0300d7baf6
commit 9fdb778330
16 changed files with 3844 additions and 70 deletions

View File

@@ -0,0 +1,17 @@
import type { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
schema: 'http://127.0.0.1:5001/api/graphql/introspection',
documents: ['src/**/*.{ts,tsx}'],
generates: {
'./src/infra/graphql/gql/': {
plugins: [],
preset: 'client',
presetConfig: {
gqlTagName: 'gql',
},
},
},
};
export default config;