From b70ea9b1c285dbff861ef401d41009bd22bc7fa9 Mon Sep 17 00:00:00 2001 From: cond0r Date: Tue, 20 Apr 2021 10:04:47 +0300 Subject: [PATCH] Update README.md --- framework/shopify/README.md | 12 ++++++++++++ framework/shopify/schema.d.ts | 1 + 2 files changed, 13 insertions(+) diff --git a/framework/shopify/README.md b/framework/shopify/README.md index d67111a41..d5c4aa942 100644 --- a/framework/shopify/README.md +++ b/framework/shopify/README.md @@ -121,3 +121,15 @@ const pages = await getAllPages({ config, }) ``` + +## Code generation + +This provider makes use of GraphQL code generation. The [schema.graphql](./schema.graphql) and [schema.d.ts](./schema.d.ts) files contain the generated types & schema introspection results. + +When developing the provider, changes to any GraphQL operations should be followed by re-generation of the types and schema files: + +From the project root dir, run: + +```sh +yarn generate:shopify +``` diff --git a/framework/shopify/schema.d.ts b/framework/shopify/schema.d.ts index 12fa96d1c..7477df239 100644 --- a/framework/shopify/schema.d.ts +++ b/framework/shopify/schema.d.ts @@ -5024,6 +5024,7 @@ export type Unnamed_1_Mutation = { __typename?: 'Mutation' } & { 'code' | 'field' | 'message' > > + checkout?: Maybe<{ __typename?: 'Checkout' } & CheckoutDetailsFragment> } > }