I'm looking at this again, but I'm pretty stuck.
I've added:
import { AmplifyApiGraphQlResourceStackTemplate } from '@aws-amplify/cli-extensibility-helper';
export function override(resources: AmplifyApiGraphQlResourceStackTemplate) {
resources.models["TaskAssignee"].appsyncFunctions["MutationcreateTaskAssigneepostAuth1FunctionMutationcreateTaskAssigneepostAuth1Function.AppSyncFunction"].dataSourceName = "TaskTable";
}
to my override.ts file, however on push I get error:
Error: Skipping override due to TypeError: Cannot read property 'MutationcreateTaskAssigneepostAuth1FunctionMutationcreateTaskAssigneepostAuth1Function.AppSyncFunction' of undefined
I'm also not sure what I'm supposed to put in the vtl file. I can see there is a way to reject a request with an error, but I don't know how to access the associated Task data to find out if it is archived or not.
My other thread for some more context #1080055263685525596 message
could anyone please help me through this? I've never touched vtl files before and the existing documentation doesn't really cover this use case.