How to get a list of products in a Stores/Collection?

Try this line. It was given in forum a while ago

wixData.query("Stores/Products").hasSome("collections.id", ["collection_ID"]).find()