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 |
---|---|
13 | |
7 | |
5 | |
5 | |
5 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022