schema:
  - ${GRAPHQL_SCHEMA_PATH}
  - apps/trading/client.graphql
  - apps/token/client.graphql
documents: '{apps,libs}/**/*.graphql'
config:
  preResolveTypes: true
  namingConvention: keep
generates:
  libs/types/src/__generated__/types.ts:
    - typescript
  libs/**:
    preset: near-operation-file
    presetConfig:
      folder: __generated__
      extension: .ts
      baseTypesPath: ~@vegaprotocol/types
    plugins:
      - typescript-operations
      - typescript-react-apollo
  apps/**:
    preset: near-operation-file
    presetConfig:
      folder: __generated__
      extension: .ts
      baseTypesPath: ~@vegaprotocol/types
    plugins:
      - typescript-operations
      - typescript-react-apollo
