mirror of
https://github.com/Start9Labs/start9.com.git
synced 2026-03-31 20:43:43 +00:00
experiment with new approach
This commit is contained in:
22
site/web/codegen.ts
Normal file
22
site/web/codegen.ts
Normal 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
|
||||
Reference in New Issue
Block a user