mirror of
https://github.com/Start9Labs/start9.com.git
synced 2026-03-31 04:23:42 +00:00
23 lines
435 B
TypeScript
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
|