I tried to make a synchronous queries using mongoose ODM using 'await' keyword basing on another post as the example bellow :
const query= userModel.find({});
const syncResutlt= await query.exec();
console.log(syncResutlt);
but I got this error message :
const result2 = await query.exec();
^^^^^
SyntaxError: Unexpected identifier
I tried also yield
generator keyword, but I get always the same error
SyntaxError: Unexpected identifier
for information I have nodeJs V8.