aws / aws/aws-appsync-community

Nested Object Update issue - Appsync DynamoDB

Open
#176 1 comment 2 reactions 0 assignees View on GitHub
question
Dominant language
HTML
Stars
507
Forks
37
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Research direction

The issue provides only the Thing and ThingData GraphQL schema; start by reproducing the firstName update against the AppSync DynamoDB datasource and compare the resulting Thing object. Done means determining how to update firstName while retaining the existing lastName, or clearly documenting the applicable limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, graphql
Domain
api, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.