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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠