仅获取graphql中新创建的数据
我有以下来自shopify graphql的变异,为现有产品添加了一个变体 质疑 价值观仅获取graphql中新创建的数据,graphql,shopify-api,graphql-mutation,Graphql,Shopify Api,Graphql Mutation,我有以下来自shopify graphql的变异,为现有产品添加了一个变体 质疑 价值观 { "id": "gid://shopify/Product/5388344426634", "options": [ "size", "color" ], "variants": [ {
{
"id": "gid://shopify/Product/5388344426634",
"options": [
"size",
"color"
],
"variants": [
{
"options": [
"xxl",
"black"
]
}
]
}
回应
{
"data": {
"productUpdate": {
"product": {
"id": "gid:\/\/shopify\/Product\/5388344426634",
"title": "hello-kitty123s",
"publishedAt": null,
"options": [
{
"values": [
"xxl"
]
},
{
"values": [
"black"
]
}
],
"variants": {
"edges": [
{
"node": {
"id": "gid:\/\/shopify\/ProductVariant\/34937293373578",
"title": "xxl \/ black"
}
}
]
}
},
"userErrors": []
}
},
"extensions": {
"cost": {
"requestedQueryCost": 113,
"actualQueryCost": 14,
"throttleStatus": {
"maximumAvailable": 1000.0,
"currentlyAvailable": 986,
"restoreRate": 50.0
}
}
}
}
是否有一种方法可以在响应中仅获取新创建的产品变体,而不必对变体进行分页或在查询中传递非常大的数字,即variants(first:100)
{
"data": {
"productUpdate": {
"product": {
"id": "gid:\/\/shopify\/Product\/5388344426634",
"title": "hello-kitty123s",
"publishedAt": null,
"options": [
{
"values": [
"xxl"
]
},
{
"values": [
"black"
]
}
],
"variants": {
"edges": [
{
"node": {
"id": "gid:\/\/shopify\/ProductVariant\/34937293373578",
"title": "xxl \/ black"
}
}
]
}
},
"userErrors": []
}
},
"extensions": {
"cost": {
"requestedQueryCost": 113,
"actualQueryCost": 14,
"throttleStatus": {
"maximumAvailable": 1000.0,
"currentlyAvailable": 986,
"restoreRate": 50.0
}
}
}
}