LoginSignup
1
1

More than 3 years have passed since last update.

appsync aurora 1つのリクエストマッピングテンプレートにかけるクエリは2つまで

Last updated at Posted at 2020-03-13

appsync でデータソースにAuroraを指定してmutationを実行したら下記のエラーが出ました。

Only up to 2 queries are allowed in a template

リゾルバーのリクエストマッピングでSQLクエリを3つ書いていたので出たようです。。

3つ以上実行するときは、mutationを分けるかパイプラインリゾルバーかLambdaにすればよいのかと思います。

追記

ちなみにトランザクションは効かないみたいです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1