@russian-dima Thanks for the response, however I am still trying to find out how to make use of the Function.
const data = wixData.get("Collection", itemid)
.then( (results) => {
let output = results;
return output;
} );
console.log(data);
I’m such a noob at Promises :P. Okay so this is the basic function. Could you show me how to use async to get the data? I’ve tried this:
const o = async () => {
const a = await output;
console.log(a);
But it doesn’t work. If I were to just return:
console.log(data);
Then I get the return “Promise<>”.
I been at this for at least 12 hours XD; Promises are so confusing.