-
Notifications
You must be signed in to change notification settings - Fork 564
AppSync event looks like a map and not like AppSyncResolverTemplate #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can confirm this mapping template:
does not populate event. Logging
Edit 1: Following the README format with:
populates Edit 2: Doesn't seem to be like
Printing
Edit 3: Also tried changing the mapping template:
and get the same results. Are Go handlers for AppSync just not supported? This issue makes them unusable. Documentation only exists for NodeJS, so maybe the inclusion of |
Are there any updates on this? This issue has been open for a few months... |
@sashker did you figure out this issue? |
I managed to get everything working. My mistake was a misunderstanding of what exactly is passed into the Handlers.
For ex: mapping template:
sample query:
Type:
Handler:
I'm unsubscribing to this thread. @ me if u have any questions. |
@daviskoh I think the map type might be more flexible in these situations. Map can adjust to new arguments being added, and usage can be replicated across other handlers. The strict format of the struct you mentioned above will also work, just not as flexible
|
Hello.
I'm awaiting events.AppSyncResolverTemplate having all usual fields like Operation, Version, Payload from AppSync.
My mapping template produced from the original Invoke and forward arguments
I thought I have to recieve a JSON with all those fields. But when I eventually decided to specify an event like an interface{} it turned out that I recieve a map[] of values
Can somebody clarify, please, if it works as expected or not?
The text was updated successfully, but these errors were encountered: