Skip to content

DS-16351: Migrate GraphQL queries to v3 endpoint#40

Open
hc2116 wants to merge 1 commit into
cloudflare:mainfrom
hc2116:DS-16351
Open

DS-16351: Migrate GraphQL queries to v3 endpoint#40
hc2116 wants to merge 1 commit into
cloudflare:mainfrom
hc2116:DS-16351

Conversation

@hc2116

@hc2116 hc2116 commented May 22, 2026

Copy link
Copy Markdown
  • Update CLOUDFLARE_GQL_URL to /client/v4/graphql/v3
  • Refactor all 14 zone-level GraphQL queries: wrap zones(zoneTag_in) inside accounts(accountTag) to satisfy v3 constraint that zoneTag_in is only allowed under an accounts block
  • Add $accountID: string! variable to each zone-level query
  • Add accountId parameter to getZoneMetrics and all 12 private zone metric methods; pass accountID to every query call site
  • Update result iteration from viewer.zones to viewer.accounts[].zones[] to match the new query shape
  • Pass accountId from MetricExporter state to both getZoneMetrics call sites (single-chunk and multi-chunk paths)

- Update CLOUDFLARE_GQL_URL to /client/v4/graphql/v3
- Refactor all 14 zone-level GraphQL queries: wrap zones(zoneTag_in)
  inside accounts(accountTag) to satisfy v3 constraint that zoneTag_in
  is only allowed under an accounts block
- Add $accountID: string! variable to each zone-level query
- Add accountId parameter to getZoneMetrics and all 12 private zone
  metric methods; pass accountID to every query call site
- Update result iteration from viewer.zones to
  viewer.accounts[].zones[] to match the new query shape
- Pass accountId from MetricExporter state to both getZoneMetrics
  call sites (single-chunk and multi-chunk paths)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant