Find all collections that use a given app-owned source

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 belong to 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.