In JS Appsync resolvers, Lambda request object allows as much context information as possible to pass to the Lambda function, with the payload property.
However, when using typescript for the actual Lambda function acting as my datasource, I pass the type AppSyncResolverHandler to my handler : (MutationUpdateUsernameArgs and BasicResponse are generated by my graphql schema)
Hello !
In JS Appsync resolvers, Lambda request object allows as much context information as possible to pass to the Lambda function, with the payload property.
However, when using typescript for the actual Lambda function acting as my datasource, I pass the type AppSyncResolverHandler to my handler : (MutationUpdateUsernameArgs and BasicResponse are generated by my graphql schema)
The event has therefore this type :
When I try to access my event's payload properties, typescript tells me that those properties don't exist on the AppSyncResolverEvent.
Is this expected behaviour, am I doing something wrong?
Thank you for your help :)