Files
start9.com/site/web/codegen.ts
2026-03-12 12:27:34 -06:00

23 lines
435 B
TypeScript

import type { CodegenConfig } from '@graphql-codegen/cli'
const config: CodegenConfig = {
overwrite: true,
schema: 'http://localhost:3000/shop-api',
documents: 'src/**/*.graphql.ts',
generates: {
'src/gql/': {
preset: 'client',
config: {
scalars: {
Money: 'number',
},
namingConvention: {
enumValues: 'keep',
},
},
},
},
}
export default config