In GraphQL, I'm trying to create a GeoJSON object type.
When I specify a 4-dimensional array of GraphQLFloat
s, I get an error when I start my server:
Error: Decorated type deeper than introspection query.
The type definition looks like this:
var GraphQLGeoJSON = new GraphQLObjectType({
name: 'GeoJSON',
fields: {
type: {
type: GraphQLString,
resolve: (obj) => obj.type,
},
coordinates: {
type: new GraphQLList(new GraphQLList(new GraphQLList(new GraphQLList(GraphQLFloat)))),
resolve: (obj) => obj.coordinates,
}
}
});
How can I resolve this error? This is where it's thrown in the source: