In GraphQL, sto provando a creare un tipo di oggetto GeoJSON.In GraphQL, come posso specificare gli array annidati come un tipo di campo?
Quando ho specificare un allineamento a 4 dimensioni di GraphQLFloat
s, ottengo un errore quando inizio il mio server:
Error: Decorated type deeper than introspection query.
La definizione del tipo simile a questa:
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,
}
}
});
Come posso risolvere questo errore? Questo è dove è gettato nella fonte: