dappconnect-sdks/apps/website/codegen.yml

37 lines
705 B
YAML

schema:
- https://hasura.infra.status.im/v1/graphql
documents:
- ./src/**/*.tsx
- ./src/**/*.ts
overwrite: true
hooks:
afterAllFileWrite:
- prettier --write
- eslint --fix
generates:
./src/lib/graphql/generated/schemas.ts:
plugins:
- typescript
./src/lib/graphql/generated/operations.ts:
preset: import-types
presetConfig:
typesPath: ./schemas
plugins:
- typescript-operations
./src/lib/graphql/generated/hooks.ts:
preset: import-types
presetConfig:
typesPath: ./operations
plugins:
- typescript-react-query
config:
fetcher: '../api#createFetcher'
exposeQueryKeys: true
errorType: GraphqlApiError