Retrieve collection id inside product API

I’m using this API:

const product = await client.product.fetch(productId);

I saw that in the response object there is no way to get the collection (or collections) id.

Is there an alternative way to fetch it when I’m fetching a product?

Hey @Filippinifra

You could try fetching it the other way around by trying to fetch the Collection ID’s holding Products this way - hope that helps!%3B-,Fetching%20Collections,-//%20Fetch%20all%20collections)