metaforecast/codegen.yml

25 lines
558 B
YAML
Raw Normal View History

schema: src/graphql/build-schema.js
documents:
- "src/**/*.graphql"
2022-04-13 22:07:57 +00:00
# This should be updated to match your client files
# documents: 'client/**/!(*.d).{ts,tsx}'
generates:
# This will take your schema and print an SDL schema.
schema.graphql:
plugins:
- schema-ast
src/graphql/types.generated.ts:
plugins:
- typescript
src/:
preset: near-operation-file
presetConfig:
extension: .generated.tsx
baseTypesPath: graphql/types.generated.ts
plugins:
- typescript-operations
- typed-document-node