Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Add GQL types for Admin API #1054

Merged
merged 4 commits into from
Nov 15, 2023
Merged

Add GQL types for Admin API #1054

merged 4 commits into from
Nov 15, 2023

Conversation

paulomarg
Copy link
Contributor

@paulomarg paulomarg commented Nov 10, 2023

WHY are these changes introduced?

We want to type GraphQL queries automatically, so apps can easily get the return types of their queries / mutations in their TS code.

WHAT is this pull request doing?

Updating the types in @shopify/admin-api-client so that the file created by @shopify/api-codegen-preset automatically causes queries to be typed, without user intervention.

This way, the client will be able to type the response:
image

and the variables a query expects:
image

Type of change

  • Minor: New feature (non-breaking change which adds functionality)

Checklist

  • I have used yarn changeset to create a draft changelog entry (do NOT update the CHANGELOG.md file manually)
  • I have added/updated tests for this change
  • I have documented new APIs/updated the documentation for modified APIs (for public APIs)

@paulomarg paulomarg requested a review from a team as a code owner November 10, 2023 16:19
Copy link
Contributor

@melissaluu melissaluu left a comment

Choose a reason for hiding this comment

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

Just left a README comment but other than that, all looks good!

@paulomarg paulomarg merged commit b96d16f into main Nov 15, 2023
@paulomarg paulomarg deleted the add_graphql_types branch November 15, 2023 20:48
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