-
Notifications
You must be signed in to change notification settings - Fork 388
Use new GraphQL clients in shopify-api #1068
Conversation
6a78c48
to
f71b46b
Compare
185633e
to
f2135c8
Compare
78c39d0
to
eb5d000
Compare
f2135c8
to
0311d59
Compare
c474907
to
77f10ca
Compare
0311d59
to
64f6141
Compare
8b0fcbc
to
5ab5f3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving so you can ship without a second review,
But: Could you run me through the changes on tuple? There is a lot going on here and I don't trust I understand everything.
"@shopify/graphql-client": patch | ||
--- | ||
|
||
Use the new GraphQL API clients in shopify-api to use all of the latest features, including automatic types for query / mutation return object and variables. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here as in another PR:
- Can we show what this means? Perhaps a GIF?
- Can we link to a PR that shows the changes needed to make use of the new awesomeness?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the best thing here would be to add a documentation page that goes over that step by step. That page can include a video / gif of the experience, plus instructions on setting it up. Maybe we can make that a follow up and ensure we link there from the changelog / migration guide?
packages/shopify-api/lib/__test-helpers__/to-match-made-http-request.ts
Outdated
Show resolved
Hide resolved
e2547f9
to
5ab5f3d
Compare
dc6d659
to
1328b11
Compare
1328b11
to
1b40d36
Compare
3ff82f2
to
e90a7c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 small comments, but approving so you don't need another review.
Great work.
WHY are these changes introduced?
Now that
@shopify/storefront-api-client
and@shopify/admin-api-client
are released, we want to start using them in this package.WHAT is this pull request doing?
Underpinning the existing clients with the new ones. As part of this change, I also did a bit of refactoring on the tests and rearranged the files inside
lib/clients
to match the exported object more closely.Since this is already a big change (mostly due to tests moving around), I'm setting up an update of the REST client in a different PR.
Type of change
Checklist
yarn changeset
to create a draft changelog entry (do NOT update theCHANGELOG.md
file manually)