can we store multidimensional arrays in graphcool?...
# prisma-whats-new
a
can we store multidimensional arrays in graphcool? like square[][]
n
Yes, but not "natively", because that's not a valid GraphQL type. But you can easily use types and relations to emulate it.
a
Hey thanks! can you give an example. i didn’t get how to emulate it
n
well, for example one type would be called Row, that has a scalar list. Then in another type you can have a list of rows.
a
type Number { number: Int } type Row { row: [Number] } type listRow { double_row: [Row] }
n
you can drop the Number type and write row: [Int!]! instead
a
yes that makes sense. thanks nilan😀