mirror of
https://github.com/status-im/status-web.git
synced 2026-08-30 05:41:09 +00:00
Co-authored-by: marcelines <marcio@status.im> Co-authored-by: Jakub Kotula <520927+jkbktl@users.noreply.github.com> Co-authored-by: Pavel <14926950+prichodko@users.noreply.github.com> Co-authored-by: Felicio Mununga <felicio@users.noreply.github.com>
39 lines
863 B
YAML
39 lines
863 B
YAML
schema:
|
|
- https://hasura.bi.status.im/v1/graphql
|
|
|
|
documents:
|
|
- ./src/**/*.tsx
|
|
- ./src/**/*.ts
|
|
|
|
overwrite: true
|
|
|
|
# hooks:
|
|
# afterAllFileWrite:
|
|
# - prettier --write
|
|
# - eslint --fix
|
|
|
|
generates:
|
|
./src/app/(website)/insights/_graphql/generated/schemas.ts:
|
|
plugins:
|
|
- typescript
|
|
|
|
./src/app/(website)/insights/_graphql/generated/operations.ts:
|
|
preset: import-types
|
|
presetConfig:
|
|
typesPath: ./schemas
|
|
plugins:
|
|
- typescript-operations
|
|
|
|
./src/app/(website)/insights/_graphql/generated/hooks.ts:
|
|
preset: import-types
|
|
presetConfig:
|
|
typesPath: ./operations
|
|
plugins:
|
|
- typescript-react-query
|
|
config:
|
|
fetcher: '../api#createFetcher'
|
|
exposeQueryKeys: true
|
|
errorType: GraphqlApiError
|
|
# addSuspenseQuery: true -> only supported in react-query@5
|
|
reactQueryVersion: 5
|