查询到目前为止的{ product1: product(id: "gid://shopify/Product/777854222396") { title totalVariants variants(first:99) { ..... } hasOutOfStockVariants } product2: product(id: "gid://shopify/Product/511571296316") { title } }
可以做什么来获取基于id的变量
发布于 2018-09-28 15:50:13
我在他们的GraphQL Admin API参考文档中找到了ProductVariant,你可以参考他们的参考,否则我没有发现任何ProductVariant Schema在QueryRoot上打开,就像这里在开放graphQL admin panel中定义的那样,尽管他们提到了一个example。
query {
productVariant(id: "gid://shopify/ProductVariant/10782354800682") {
inventoryItem {
inventoryLevels (first:10) {
edges {
node {
location {
name
}
available
}
}
}
}
}
}https://stackoverflow.com/questions/52534124
复制相似问题