I was using AWS amplify with React, and GraphQL API.that leverages AWS AppSync. I'm very new to graphQL and my schema currently is like this. This is the schema inside the amplify app:
type Note @model {
id: ID!
name: String!
title: String
movie: String
}
For example, I want to store an array of objects inside components in the Note type like this:
type Note @model {
id: ID!
name: String!
title: String
movie: String
components: []
}
Iam aware of that I can create a new table and do this:
type Note @model {
id: ID!
name: String!
title: String
movie: String
components: [elements!]!
}
type elements @model {
id: ID!
item: String!
}
But, I don't want to create a new table. Is there any possible way to do this?
And I saw similar questions on our platform, they are suggesting the AWSJSON AWS Scalar Types
But there is no actual resources for using them. if that's the solution kindly help me with the procedures how can we write mutation for them.