Hi,
Was there any resolution to this issue? I have the exact same problem - my server module just does not seem to enter the wixdata.query.find code at all:
import wixData from ‘wix-data’;
export function init()
{
console.log(‘A’);
wixData.query(‘Courses’)
.find()
.then((results) => {
console.log(‘B’);
return results.items.length;
})
. catch ((err) => {
console.log(‘error’);
return err;
});
}
console will log ‘A’, but not ‘B’ or ‘C’. It doesn’t make sense. This code works fine when it is in the front end.