Need help in Graphql Appsync
Appsync Custom Type :
type Employee {
id: ID!
name: String
experiences: [Experiences]
projects: [Projects]
}
Dynamo DB table Employee
Table: Employee
{
id:’’,
name:’’,
experience:[
{
company:’’,
from:’’,
till:’’
},
{
company:’’,
from:’’,
till:’’
}
],
projects:[
{
title:’’,
date:’’
},
{
title:’’,
date:’’
},
]
}
We need to update experience & Projects in 2 different mutation queries but update should be done in same dynamodb table. Here are my doubts:
- Do need to create separate dynamodb table for Projects & Experience. How to write mutation queries for this table updating Projects & experience in diff mutation ?