experiment with new approach

This commit is contained in:
Matt Hill
2026-03-12 12:27:34 -06:00
parent 98b429fcad
commit 082254575b
511 changed files with 44511 additions and 0 deletions

22
site/web/codegen.ts Normal file
View File

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