1 Answer
- Newest
- Most votes
- Most comments
1
Hi. This is most likely because you do not have a resolver set for your mutation. Try following steps -
- In AppSync console, in left navigation, click on "Schema"
- On next page, in right section under "Resolvers", search for Mutation list
- Next to
publish(...): Channel
, click on "Attach" button - On next page, change resolver type to VTL.
- From DataSource dropdown, select NoneDataSource.
- Click Create
- Under Configure Mapping Template, change to following code -
{
"version": "2017-02-28",
"payload": {
"id": "$context.arguments.id"
}
}
- Click Save
- Go back to Queries page and retest.
To make this work with your business logic you will have to implement resolvers. Read more here - https://docs.aws.amazon.com/appsync/latest/devguide/resolver-components.html
answered 5 months ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Thank you, this solved the problem for me.