{ typedComponent(namespaceId: 1, publicationId: , 8,componentId: 52117) { title ... on DownloadCenterAdvert{ title image{ ... on Image{ variants{ edges{ node{ url } } } } } link{ text{ html } url target } } } }
Output Should Render like Below,
{ "data": { "typedComponent": { "title": "Advert", "image": { "variants": { "edges": [ { "node": { "url": "/images/support/DownloadCenter/US106-42090.jpg" } } ] } }, "link": { "text": { "html": "Download Center Help" }, "url": "http://www.example.com", "target": "_blank" } } } }
But its image not resolving its giving "/images/US106-42090.jpg" instated of "/images/support/DownloadCenter/US106-42090.jpg" as below any suggestion to resolve this
{ "data": { "typedComponent": { "title": "Advert", "image": { "variants": { "edges": [ { "node": { **"url": "/images/US106-42090.jpg"** } } ] } }, "link": { "text": { "html": "Download Center Help" }, "url": "http://www.example.com", "target": "_blank" } } } }