Skip to content

Scaffolding tool breaks on multidimensional array types #420

Description

@donverduyn

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions