Skip to content

Add GraphQL response metadata helper#13

Merged
TDanks2000 merged 1 commit into
mainfrom
agent/graphql-response-metadata
Jul 18, 2026
Merged

Add GraphQL response metadata helper#13
TDanks2000 merged 1 commit into
mainfrom
agent/graphql-response-metadata

Conversation

@TDanks2000

Copy link
Copy Markdown
Collaborator

What changed

  • Adds graphqlWithResponse for GraphQL calls that need the raw Response, request context, plugin metadata, and GraphQL extensions.
  • Preserves the same GraphQL application-error behaviour as client.graphql().
  • Forwards variables, operation names, headers, abort signals, timeouts, cache keys, and tags.
  • Exports GraphQLApiResponse and adds deterministic tests plus a minor Changeset.

Why

Wrappers such as AniList need response headers for current rate-limit state and diagnostics, but client.graphql() intentionally returns only the GraphQL data field.

Design

This is a standalone helper over requestWithResponse, which keeps the PR focused and avoids changing the central request loop.

Validation

GitHub Actions will run the repository verification pipeline.

@TDanks2000
TDanks2000 marked this pull request as ready for review July 18, 2026 00:31
@TDanks2000
TDanks2000 force-pushed the agent/graphql-response-metadata branch from 5a5be41 to bdfb423 Compare July 18, 2026 00:32
@TDanks2000
TDanks2000 force-pushed the agent/graphql-response-metadata branch from bdfb423 to 11f8d4a Compare July 18, 2026 00:34
@TDanks2000
TDanks2000 merged commit 8e5afc2 into main Jul 18, 2026
2 checks passed
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