I am Trying to Define a typeDefs for the following response in graphql
CompactRes={
"Compact": [
[
0,
1,
2,
3
],
[
4,
5,
6,
[
7,
2.567
]
]]}
Here is my Schema
const typeDefs = gql`
type Compact{
compact:[[Float]]
}
type Query {
response(count: ID!): Compact
}
`;
const resolvers = {
Query: {
response: (parent, args, context, info) =>{
return CompactRes;
},
},
};