123456789101112131415161718192021222324252627282930313233343536373839 |
- overwrite: true
- schema: ${VITE_NEXT_ORION_URL}
- documents:
- - './src/api/queries/**/*.graphql'
- config:
- scalars:
- DateTime: Date
- BigInt: string
- preResolveTypes: true # avoid using Pick
- generates:
- src/api/schemas/orion.json:
- plugins:
- - introspection
- config:
- minify: true
- src/api/queries/__generated__/baseTypes.generated.ts:
- hooks:
- afterOneFileWrite:
- - prettier --write
- - eslint --fix
- plugins:
- - typescript
- src/api/queries/__generated__/:
- preset: near-operation-file
- presetConfig:
- baseTypesPath: baseTypes.generated.ts
- folder: __generated__
- extension: .generated.tsx
- hooks:
- afterOneFileWrite:
- - prettier --write
- - eslint --fix
- plugins:
- - typescript-operations
- - typescript-react-apollo
|