Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Add GraphQL operation type #2789

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Add GraphQL operation type #2789

merged 1 commit into from
Jun 10, 2024

Conversation

lemonmade
Copy link
Member

Description

This PR adds a type property to GraphQL operations using our "simple" and "simple-persisted" GraphQL output formats. This field extracts the operation type of the original document, so a consumer can easily tell if this is a query, mutation, or subscription. I need this for my work to add persisted queries to checkout, so that we can correctly switch between GET and POST requests, depending on whether we have a query or mutation.

@lemonmade lemonmade requested a review from a team as a code owner June 10, 2024 20:08
@lemonmade lemonmade requested a review from mateus June 10, 2024 20:08
@lemonmade lemonmade force-pushed the add-graphql-operation-type branch from c849c7a to 40beaee Compare June 10, 2024 20:44
@lemonmade lemonmade merged commit bdebd91 into main Jun 10, 2024
5 checks passed
@lemonmade lemonmade deleted the add-graphql-operation-type branch June 10, 2024 21:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants