2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
4
Unfortunately DynamoDB does not provide out of the box capability to define a strict schema. You must impose schema validation on the client side, ensuring users add the desired fields for every mutation.
As you mention, DynamoDB is a NoSQL schemaless database, which means you must only define the keys up-front. Your application code would be responsible for ensuring all the items follow a strict schema, and can do so by setting empty values for those attributes.
0
Yes, you can have null values for attributes with some qualifications around indexes. See: Amazon DynamoDB now supports empty values for non-key String and Binary attributes in DynamoDB tables.
관련 콘텐츠
- AWS 공식업데이트됨 4년 전
- AWS 공식업데이트됨 4년 전
- AWS 공식업데이트됨 8달 전
Is there an easy to integrate readily available low or no code way to put a simple frontend in AWS using I AM authentication allowing authorised users to fill a form that calls a lambda function?