Development discussions around Shopify APIs
Here is what I tried:
To get a list of products (Taken from: https://community.shopify.com/c/Shopify-APIs-SDKs/How-to-retrive-all-the-products-of-shop-using-Grap...)
{
products(first: 2) {
edges {
cursor
node {
id
}
}
}
}
To get a specific product id (Taken from: https://shopify.dev/docs/admin-api/graphql/examples/product)
{
query product(id: "gid://shopify/Product/6716637249718") {
title
description
}
}
However, with both commands above, I am getting an error of (in Shopify's GraphiQL):
Why is this happening?
Fixed it! There was an extra { } that I didn't remove - it was causing the error.
User | RANK |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023