I refer to the example code here: https://support.wix.com/en/article/velo-wix-stores-products-collection-fields
// Query all products, including variants and hidden products (optional)
wixData.query("Stores/Products")
.find({
appOptions: {
includeVariants: true,
includeHiddenProducts: true
}
})
.then((results) => {
// handle the results
});
appOptions type is not recognized. Anyone can help?
@myapps20000 Did you ever figure this out? I’m having same issue.
So it looks like this will work below. But needs to be put in the action function like find or count.
const options = {
“suppressAuth” : true ,
appOptions : {
“includeVariants” : true ,
“includeHiddenProducts” : true
}
}
const results = await wixData . query ( “Stores/Products” ). eq ( “sku” , sku ). find ( options )
@myapps20000 Did you ever resolve this and is it still working. Seems like this is not working anymore?