Jordaneisenburger / fallback-studio

Magento 2 PWA fallback wrapper to easily create a custom theme on top of PWA Studio
MIT License
113 stars 28 forks source link

ProductImage must have a sub selection #2

Closed Huaoe closed 5 years ago

Huaoe commented 5 years ago

browsing : https://fallback-studio-example-shop-amwsw.local.pwadev:8415/venia-dresses.html

UpwardServerError: Request did not evaluate to a valid response, because: 
Error: Error: Field "small_image" of type "ProductImage" must have a sub selection.
   at makePromise.then (C:\Users\Thomas\Documents\_Projects\Magento\FallBackStudio\fallback-studio\src\example-company\example-shop\node_modules\@magento\pwa-buildpack\node_modules\@magento\upward-js\lib\resolvers\ServiceResolver.js:83:27)
   at process._tickCallback (internal/process/next_tick.js:68:7)
   at buildResponse (C:\Users\Thomas\Documents\_Projects\Magento\FallBackStudio\fallback-studio\src\example-company\example-shop\node_modules\@magento\pwa-buildpack\node_modules\@magento\upward-js\lib\buildResponse.js:30:15)
   at process._tickCallback (internal/process/next_tick.js:68:7)
   at UpwardPlugin.<anonymous> (C:\Users\Thomas\Documents\_Projects\Magento\FallBackStudio\fallback-studio\src\example-company\example-shop\node_modules\@magento\pwa-buildpack\node_modules\@magento\upward-js\lib\middleware.js:72:21)
   at process._tickCallback (internal/process/next_tick.js:68:7)

Huaoe commented 5 years ago

Well, I've tested working with a mac and it wokrs like a charm...

amitmaurya1024 commented 2 years ago

add the following in product query

{...
small_image{
    url
}
....
}