Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: Define _response map_ #1143

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

robrichard
Copy link
Contributor

@robrichard robrichard commented Mar 6, 2025

Follow up from #1135

This creates a definition for Response Map, defined as the map normally returned by GraphQL queries and mutations containing data and/or errors.

The definition of Response is updated to include both Response Map, and Response Stream (for subscriptions).

For Incremental Delivery I plan on updating Response to also include Incremental Stream.

I went through every mention of response and most of the remaining usages are around response key or response field, referring to the object property name (ie for aliases and error paths). This could also likely be standardized in a follow up.

@robrichard robrichard requested review from benjie and leebyron March 6, 2025 20:04
Copy link

netlify bot commented Mar 6, 2025

Deploy Preview for graphql-spec-draft ready!

Name Link
🔨 Latest commit dc300d1
🔍 Latest deploy log https://app.netlify.com/sites/graphql-spec-draft/deploys/67cafdca694485000842a5f2
😎 Deploy Preview https://deploy-preview-1143--graphql-spec-draft.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

benjie

This comment was marked as resolved.

This creates a definition for Response Map, defined as the map normally returned by graphql queries and mutations containing data and/or errors.

The definition of Response is updated to include both Response Map, and Response Stream (for subscriptions).

For Incremental Delivery I plan on updating Response to also include _Incremental Stream_.
@robrichard robrichard force-pushed the robrichard/response-map branch from 9e0af97 to 00fe58d Compare March 6, 2025 20:55
Copy link
Member

@benjie benjie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

(I have not done a full review of the spec to ensure we caught everything.)

Co-authored-by: Benjie <benjie@jemjie.com>
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.

2 participants