This commit is contained in:
2024-12-30 09:41:12 +01:00
parent 27215cb4aa
commit 94e065991b
2 changed files with 6 additions and 4 deletions

View File

@@ -162,8 +162,10 @@ export async function findShop(shopifyDomain: string) {
After this let's set up the GraphQL schema for Genql, simply run the following command:
```bash
npx genql --endpoint "https://<name>.myshopify.com/admin/api/2024-07/graphql.json" -S --output "app/lib/genql/generated.server" -H "X-Shopify-Access-Token: <access token>" --esm
```sh
npx genql -S --output "app/lib/genql/generated.server" \
--endpoint "https://<name>.myshopify.com/admin/api/2024-07/graphql.json" \
-H "X-Shopify-Access-Token: <access token>" --esm
```
Replace the `<name>.myshopify.com` and `<access token>` with some real data (you can also use the data from a test store, the command is just needed to generate the graphql schema).