aws-appsync-community icon indicating copy to clipboard operation
aws-appsync-community copied to clipboard

Nested Object Update issue - Appsync DynamoDB

Open ranjith-jagadeesh opened this issue 4 years ago • 1 comments

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?

ranjith-jagadeesh avatar Aug 02 '21 04:08 ranjith-jagadeesh

I recommend opening a ticket on Amplify DataStore since you are using a @model and the resolver functionality is generated using the amplify cli.

onlybakam avatar Feb 08 '22 00:02 onlybakam