question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Decorated type deeper than introspection query. 4d array

See original GitHub issue

It does not seem like this library supports 4d arrays.

I have this type defined on my server

type MultiPolygon {
  type: GeometryType!
  coordinates: [[[[Float!]!]!]!]!
  bbox: [Float!]
}

When I try to load the graphql playground I get this error:

Uncaught Error: Decorated type deeper than introspection query.
    at m (buildClientSchema.mjs:69)
    at m (buildClientSchema.mjs:82)
    at m (buildClientSchema.mjs:72)
    at m (buildClientSchema.mjs:82)
    at m (buildClientSchema.mjs:72)
    at m (buildClientSchema.mjs:82)
    at m (buildClientSchema.mjs:72)
    at m (buildClientSchema.mjs:82)
    at w (buildClientSchema.mjs:251)
    at keyValMap.mjs:20

This error only occurs when I change the coordinates field from 3d to 4d.

I’m wondering if this is a bug that is fixable or is there a workaround?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
danielreardencommented, Jun 11, 2020

I think it might be worthwhile to add some kind of ofTypeDepth property to IntrospectionOptions, which could then also be exposed by tools like GraphiQL/GraphQL Playground.

1reaction
dylandong12commented, Feb 22, 2022

we are also using GeoJSON MultiPolygon. not supporting 4d arrays blocks us from using graphql type generation tooling as well. @IvanGoncharov any idea to fix this, please?

Read more comments on GitHub >

github_iconTop Results From Across the Web

In GraphQL, how can I specify nested arrays as a field type?
Error: Decorated type deeper than introspection query. The type definition looks like this: var GraphQLGeoJSON = new GraphQLObjectType({ name: ' ...
Read more >
Introspection - GraphQL
Now, let's try and figure out a good place to start exploring what queries are available. When we designed our type system, we...
Read more >
4 Dimensional Array in C/C++ - GeeksforGeeks
Our array can hold 840 integer-type elements. This number is reached by multiplying the value of each dimension. In this case: 4x5x6x7=840. 2....
Read more >
Python for Data Analysis
For numerical data, NumPy arrays are a much more efficient way of storing and manipulating data than the other built-in Python data structures....
Read more >
VIS 318 Four-Dimensional Design - Farmingdale State College
This is a theory/laboratory course designed to introduce the student to basic heat engine types, their physical configurations and various ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found