Hi, So not sure if you figured it out or got a response, but you don’t need to _id part. It would just be below and also not sure if the value can be an array. I just pass in an id string. But I’m having a different problem where the query is only querying like part of the database of Stores/Products. So I have over 6000 products and if I look at the database it self and look at the default view which has no filters, so it should be all of the products. It only shows me a little over 2000 products. which is really weird. and if I do the same filter on that as my query in code I get the same results. it returns me 67 products. If I do the same sort of filter in the dashboard/products where you can add new products and import them in, I’ll see almost 200 products which is actually the correct number. Not 67. Do you have this issue? Also you may need options in the query below to show certain fields.
const options = {
suppressAuth : true ,
// Include product variants in the query. Default is false.
includeVariants : true ,
// Include hidden products in the query. Default is false.
includeHiddenProducts : true
};
await wixData . query ( “Stores/Products” ). hasSome ( “collections” ,[ collectionID ]). find (options)