Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaffolding tool breaks on multidimensional array types #420

Open
DonnyVerduijn opened this issue May 25, 2023 · 0 comments
Open

Scaffolding tool breaks on multidimensional array types #420

DonnyVerduijn opened this issue May 25, 2023 · 0 comments

Comments

@DonnyVerduijn
Copy link

DonnyVerduijn commented May 25, 2023

The scaffolding tool seems to be incompatible with schemas that contain multidimensional fields. During scaffolding, the error TypeError: Cannot read properties of null (reading '0') is thrown and the procedure is aborted.

A small example:

type Subscription {
  gridState(id: ID!): [[Cell!]!]!
}

I can confirm that after removing the specific multidimensional field, the problem was resolved.
Not sure if this is a problem that should be fixed, but it seems a GraphQL spec compliant feature.
As an alternative, we could add a small notice in the readme.

@DonnyVerduijn DonnyVerduijn changed the title scaffolding tool breaks on multidimensional array types Scaffolding tool breaks on multidimensional array types May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant