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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南