Amplify: 'id' column generated even after defining custom primary key column only

0

We are using Amplify to create a model. And using AppSync mutations and queries to store and access data from those Dynamo DB tables. We defined a custom primary key. Reference: type Movie @model @auth(rules: [{ allow: public}]) { imdb: ID! @primaryKey title: String! status: MovieStatus! rating: Int! description: String } All the generated files using amplify codegen and amplify codegen-models are correct without any 'id' column as input field. But when we run the mutation to create a record, we can see in the Dynamo DB table that a column 'id' is auto generated. Is there anything we are doing that or is that expected to be generated?

1回答
1

Hello, Thank you for sharing your query. I would like to mention that I am successfully able to replicate the behaviour at my end and this is not an expected behaviour. We have shared this feedback with the Amplify service team and they are aware about this behaviour. You may also comment and add your voice to the GitHub issue tracking the same.

AWS
サポートエンジニア
Mukul_V
回答済み 8ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ