Ok well, here we have some difficulties…
But at first i want to tell you that you perhaps should learn to use this forum the right way.
- Do not show CODE-PARTS in plain text or in a pic. Do it in CODE-BLOCKs, like the following example…
$w.onReady(async function() {
let RESULTS = await checkData();
console.log("RESULTS: ", RESULTS);
});
function checkData(){
wixData.query("Diamond")
.find()
.then((res)=>{return res.items})
.catch((err)=>{console.log(err);});
}
-
Your code was not right. Take a look onto the given example above.
-
Use the console to investigate your results.