You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to type the event object coming from my AWS Amplify/NextJS front-end. It is sent via Amplify/GraphQL and being received in a NodeJS AWS Lambda. The typescript interface contained in import { AppSyncResolverEvent } from "aws-lambda"; - but this doesn't quite match the event object that's being received. Can someone please advise what I'm doing wrong?
Details:
I'm successfully firing an event from my front-end (NextJS) with aws-amplify and @aws-amplify/api-graphql packages:
I am trying to type the event object coming from my AWS Amplify/NextJS front-end. It is sent via Amplify/GraphQL and being received in a NodeJS AWS Lambda. The typescript interface contained in
import { AppSyncResolverEvent } from "aws-lambda";
- but this doesn't quite match the event object that's being received. Can someone please advise what I'm doing wrong?Details:
I'm successfully firing an event from my front-end (NextJS) with
aws-amplify
and@aws-amplify/api-graphql
packages:The event is being successfully received in my Serverless Lambda and resembles the following:
However, when I try to use
aws-lambda
in my nodejs Lambda environment:AppSyncResolverEvent
contains different properties:The text was updated successfully, but these errors were encountered: