Hello, I'm using the app bridge ResourcePicker and it works great, except it only retrieves the first 5 images, ignoring the rest.
Steps to duplicate:
1) Select a product in the Resource Picker, a product with 6+ images.
2) Log the selected product object to console.
3) See that the images array only as the first 5 images.
How can you set it to retrieve all product images?
Solved! Go to the solution
This is an accepted solution.
There isn’t a way to customize the query that the ResourcePicker makes. You can use the Admin API to fetch the additional information you need from the Product resource.
Since the Product resource can be very large, especially with a large number of variants, we are actually considering going the opposite direction with the App Bridge ResourcePicker API: allowing the picker to (optionally) return less information, and expecting the app to query the Admin API for the information it needs. Ideally, the app would use GraphQL to return only the fields it needs. While this adds an additional API call, we expect it will be significantly more efficient for some use cases.