-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #518 from Shopify/update_shopify_api_client_calls
Update remix package to use new GraphQL client format
- Loading branch information
Showing
47 changed files
with
505 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
'@shopify/shopify-app-session-storage-postgresql': patch | ||
'@shopify/shopify-app-session-storage-dynamodb': patch | ||
'@shopify/shopify-app-session-storage-mongodb': patch | ||
'@shopify/shopify-app-session-storage-memory': patch | ||
'@shopify/shopify-app-session-storage-prisma': patch | ||
'@shopify/shopify-app-session-storage-sqlite': patch | ||
'@shopify/shopify-app-session-storage-mysql': patch | ||
'@shopify/shopify-app-session-storage-redis': patch | ||
'@shopify/shopify-app-session-storage-kv': patch | ||
'@shopify/shopify-app-session-storage': patch | ||
--- | ||
|
||
Updated the dependency on `@shopify/shopify-api` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/shopify-app-express': major | ||
--- | ||
|
||
Updated `@shopify/shopify-api` to the latest major version. Please follow [the v9 migration guide](https://github.com/Shopify/shopify-api-js/blob/main/packages/shopify-api/docs/migrating-to-v9.md) to update your app. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@shopify/shopify-app-remix': minor | ||
--- | ||
|
||
Adding support for the new clients from `@shopify/admin-api-client` and `@shopify/storefront-api-client` that can leverage `@shopify/api-codegen-preset` to automatically type GraphQL operations using Codegen. | ||
|
||
For more information on how to add types to your queries, see [the `@shopify/api-codegen-preset` documentation](https://github.com/Shopify/shopify-api-js/tree/main/packages/api-codegen-preset). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 25 additions & 25 deletions
50
packages/shopify-app-remix/docs/generated/generated_docs_data.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/shopify-app-remix/docs/staticPages/examples/guides/graphql-types/.graphqlrc.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import {shopifyApiProject, ApiType} from '@shopify/api-codegen-preset'; | ||
|
||
export default { | ||
// For syntax highlighting / auto-complete when writing operations | ||
schema: 'https://shopify.dev/admin-graphql-direct-proxy/2023-10', | ||
documents: ['./app/**/*.{js,ts,jsx,tsx}'], | ||
projects: { | ||
// To produce variable / return types for Admin API operations | ||
default: shopifyApiProject({ | ||
apiType: ApiType.Admin, | ||
apiVersion: '2023-10', | ||
documents: ['./app/**/*.{js,ts,jsx,tsx}'], | ||
outputDir: './app/types', | ||
}), | ||
}, | ||
}; |
2 changes: 2 additions & 0 deletions
2
...s/shopify-app-remix/docs/staticPages/examples/guides/graphql-types/install.npm.example.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
npm add --save-dev @shopify/api-codegen-preset | ||
npm add @shopify/admin-api-client @shopify/storefront-api-client |
2 changes: 2 additions & 0 deletions
2
.../shopify-app-remix/docs/staticPages/examples/guides/graphql-types/install.pnpm.example.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pnpm add --save-dev @shopify/api-codegen-preset | ||
pnpm add @shopify/admin-api-client @shopify/storefront-api-client |
2 changes: 2 additions & 0 deletions
2
.../shopify-app-remix/docs/staticPages/examples/guides/graphql-types/install.yarn.example.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
yarn add --dev @shopify/api-codegen-preset | ||
yarn add @shopify/admin-api-client @shopify/storefront-api-client |
5 changes: 5 additions & 0 deletions
5
packages/shopify-app-remix/docs/staticPages/examples/guides/graphql-types/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"scripts": { | ||
"graphql-codegen": "graphql-codegen" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
packages/shopify-app-remix/docs/staticPages/examples/guides/graphql-types/run.npm.example.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npm run graphql-codegen |
1 change: 1 addition & 0 deletions
1
...ages/shopify-app-remix/docs/staticPages/examples/guides/graphql-types/run.pnpm.example.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm run graphql-codegen |
1 change: 1 addition & 0 deletions
1
...ages/shopify-app-remix/docs/staticPages/examples/guides/graphql-types/run.yarn.example.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
yarn graphql-codegen |
Oops, something went wrong.