aws-appsync-community
aws-appsync-community copied to clipboard
Nested Object Update issue - Appsync DynamoDB
I have been using appsync and dynamodb as datasource.
type Thing @model{
id: ID
title: String!
meta: String
thingData: ThingData
}
type ThingData {
firstName: String
lastName: String
}
Here Thing type is a DynamoDb table and ThingData is nested object field of Thing table. When I'm trying to update property firstname in ThingData, Object is replaced and lastname is removed. How to update individual property in nested objects?
I recommend opening a ticket on Amplify DataStore since you are using a @model and the resolver functionality is generated using the amplify cli.