Hi, I’m needing to do a query within a hook, but it just doesn’t seem to running at all - “queried” is never displayed on the console. Can anyone help? Thanks!
export function results_afterInsert(item, context) {
wixData.query(“pretendsessions2”)
.limit(1000)
.find()
.then( (results) => {
console.log(“queried”);
})
return item;
}