Closed
Description
I am trying to do the following:
// Schema definitions
const typeDefs = `
type Chart {
name: String
series: [Series]
}
type Series {
name: String!
data: [[Int, Float]]
}
`
where Series.data is an array of data points. Each data point is an array of x,y coordinates. For this use case a point cannot be an object with x,y keys, it must be an array. This fails to build because GraphQL does not like the definition of data: [[Int, Float]]
. I have scoured the internet, GitHub, and stackoverflow. What is the solution/workaround for this? Thanks
Metadata
Metadata
Assignees
Labels
No labels