ResourcePicker Embeded component
Issue summary
Hi guys, i am currently developing a shopify app and using Polairs components to do so. Until today when i was using Embeded ResourcePicker was returning all of the images that were associated with the product. Now it returns first five? I am wondering is this expected behavior? Sorry if my question was out of order.
Specifications
- Are you using the React components? (Y/N): YES
- Polaris version number: @shopify/polaris": "2.12.1
- Browser: Google Chrome v70.0.3538.77
- Device: PC
- Operating System: Windows 10 PRO
👋 Thanks for opening your first issue. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. You can also join #polaris on the Shopify Partners Slack.
Hi @mrdja026, Can you provide a screenshot or a screen recording? Thanks.
Hi, best i can do is this.
This is a screen shot of the onSelection callback from around 16h GTM+1 (first picture)
notice that images[] property has 18 items

Picture below is a screen shot from now

I also checked, all images are still present on the store page Tnx for the quick reply :)
Hey @mrdja026, The new GraphQL API now implements a limit on product images in the resource picker to the first 5. If you require all the images you'll need to write a query separate from the resource picker.
@markiiikram tnx, can you please provide some directions on documentations about mention queries, since https://polaris.shopify.com/components/embedded/embedded-resource-picker returns a 404, or i am missing something. Edit: Sorry, found it :)
thanks @mrdja026! i've created an issue to fix the 404 https://github.com/Shopify/polaris-react/issues/618