This is how js resolver file looks like from aws docs:
import {util} from '@aws-appsync/utils';
export function request(ctx) {
console.log("CTX", ctx);
return {};
}
export function response(ctx) {
console.log("result....");
console.log(ctx.prev.result);
return ctx.prev.result;
}
my question is:
- how can I put this in my amplify app? which folder? which file should I modify to let it pickup?
- I am using mysql serverless v1 with data api turned on, how can I run sql statements here? where do they go? I know how it works in vtl, but here I cannot find any examples.