I am already epanding the SDK with variants and metafields, however, I am unable to add images. Here is the code I use:
const query = client.graphQLClient.query((root) => {
root.addConnection('products', {
args: { first: 250}
}, (product) => {
product.add('title');
product.addConnection('variants', { args: { first: 250 } }, (variants) => {
variants.add('title');
variants.add('price');
});
product.addConnection('metafields', { args: { first: 250 } }, (metafield) => {
metafield.add('namespace')
metafield.add('key')
metafield.add('value')
metafield.add('createdAt')
});
});
});
Does anyone have idea how to add Images?
Thanks.