2022-04-18 22:12:15 +00:00
|
|
|
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
|
2022-04-18 22:12:15 +00:00
|
|
|
|
|
|
|
src/graphql/types.generated.ts:
|
|
|
|
plugins:
|
|
|
|
- typescript
|
|
|
|
|
2022-04-19 22:50:19 +00:00
|
|
|
src/graphql/introspection.json:
|
|
|
|
plugins:
|
|
|
|
- introspection:
|
|
|
|
minify: true
|
|
|
|
|
2022-04-18 22:12:15 +00:00
|
|
|
src/:
|
|
|
|
preset: near-operation-file
|
|
|
|
presetConfig:
|
|
|
|
extension: .generated.tsx
|
|
|
|
baseTypesPath: graphql/types.generated.ts
|
|
|
|
plugins:
|
2022-04-19 22:50:19 +00:00
|
|
|
- typescript-operations:
|
|
|
|
strictScalars: true
|
|
|
|
scalars:
|
|
|
|
Date: number
|
2022-04-18 22:12:15 +00:00
|
|
|
- typed-document-node
|