#Expanding Entity Relations
7 messages · Page 1 of 1 (latest)
could be like this: /store/products?expand=variants,variants.prices
Did this help you? 🙂
Thanks! I tried it but it didn't seem to work for me. My server's giving me product variants with the base /store/products query but I tried /collections/{collectionId}?expand=products and it didn't work :/
Would recommend doing /products?collection_id={collectionId} instead as there can be a lot of products in a collection so doesn't perform that well as the collection grows 🙂
Fair enough! Mostly trying to line items back from /cart/{id} though.
cart.items is part of the default response for all /store/carts/{id}/* endpoints; anything specific you are missing?