Is there a query to find all collections that use a given app-owned collection source?
Up.
This is our number one blocker with the new collection API right now.
We have an endpoint to find all sources owned by an app. But nothing to find all collections that use a given source.
Practical issues:
Right now we have to fetch all collections and look which one use a given source. Works well on a small store with a handful of collections. Not with a large store.
The consequence:
We can’t quickly find all collections that use the source to give a feedback to the user.
Why it matters:
It’s hard to build a good UI around it, it’s critical to have this information before deleting or updating a source otherwise we might affect a source that was used on live collections and this has immediate consequences for the live store.
Hi @Soufiane_Ghzal
thanks for raising this and for sharing the use case.
It’s easy to see how this would be useful functionality to have. I’ve brought this to the responsible team who are currently looking into it and have made sure your feedback was heard. No guarantees that this will be implemented, but I’ll follow up on this thread if anything changes.
Hi @Wes-Dev-Shopify thank you much appreciated.
No guarantees that this will be implemented
I can understand that, but we also need to know whether it will be implemented or not as it drives our development. We can workaround but don’t want to spend time designing something that shopify implements the next month and we were not aware of it.
Thank you
@Wes-Dev-Shopify I’m bumping this. I know it’s been only two days, but this is actually a huge blocker to adopt the new collection API. As per the doc there are up to 100,000 collections in a shop.
Worst case scenario on a large store is that we have to fetch thousands of collections just to find which ones are using a given source
It would also be useful to be able to specifically lookup for collections that do use conditions (the ones that are capped at 5000 per shop)