feature: add mgraphql codegen
This commit is contained in:
17
apps/webui/graphql-codegen.ts
Normal file
17
apps/webui/graphql-codegen.ts
Normal 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;
|
||||
Reference in New Issue
Block a user