1回答
- 新しい順
- 投票が多い順
- コメントが多い順
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
回答済み 6ヶ月前
関連するコンテンツ
- AWS公式更新しました 2年前
- AWS公式更新しました 2年前
Thank you, this solved the problem for me.