Focusing on managing products, variants, and collections through the API.
In the past, I used REST API and received products in the format described in the documentation.
Now, I need to fetch data from GraphQL, but the data format differs.
In REST API:
{
// other fileds
"images": [
{
"id": 850703190,
"product_id": 632910392,
"position": 1,
"created_at": "2018-01-08T12:34:47-05:00",
"updated_at": "2018-01-08T12:34:47-05:00",
"width": 110,
"height": 140,
"src": "http://example.com/burton.jpg",
"variant_ids": [
{}
]
}
],
}
In GraphQL Image filed does not have a image.position and images.variant_ids.
How do I find this fields?