apollo-router 1.61.13

A configurable, high-performance routing runtime for Apollo Federation 🚀
Documentation
health_check:
  enabled: true
homepage:
  enabled: true

authentication:
  router:
    jwt:
      jwks:
        - url: https://example.com

coprocessor:
  url: https://example.com

supergraph:
  query_planning:
    cache:
      redis:
        urls:
          - https://example.com
      in_memory:
        limit: 1000

limits:
  max_depth: 20
  max_height: 100
  max_aliases: 100
  max_root_fields: 10

apq:
  router:
    cache:
      redis:
        urls:
          - https://example.com
      in_memory:
        limit: 1000

subscription:
  enabled: true
  mode:
    passthrough:
      subgraphs:
        reviews:
          path: /graphql
    callback:
      public_url: "http://localhost:4040/callback"
      listen: 0.0.0.0:4040
      subgraphs:
        - atestsubgraph
plugins:
  experimental.restricted:
    enabled: true

preview_entity_cache:
  enabled: true
  invalidation:
    listen: 127.0.0.1:4000
    path: /invalidation
  subgraph:
    all:
      redis:
        urls:
          - https://example.com
      enabled: false
    subgraphs:
      product:
        enabled: false

telemetry:
  apollo:
    metrics_reference_mode: extended
  instrumentation:
    spans:
      router:
        attributes:
          http.response.status_code: true
      supergraph:
        attributes:
          graphql.document: true
      subgraph:
        attributes:
          subgraph.graphql.document: true
    instruments:
      graphql:
        list.length: true

preview_file_uploads:
  enabled: true
  protocols:
    multipart:
      enabled: true
      mode: stream

demand_control:
  enabled: true
  mode: measure
  strategy:
    static_estimated:
      list_size: 30
      max: 256