Hello, I'm trying to create a simple AppSync schema with Lambda query resolver which gets some data from the database. When I run Lambda from the console, everything is perfect and I get the correct result, but when I run it from the AppSync console, the result is null. Any idea, where I could made a mistake?
exports.handler = async (event) => {
console.log(event);
if (event.queryType === 'getUsers') {
return User.findAll();
}
}

No responses yet.