Skip to content

connection step always throws #2976

@romeovs

Description

@romeovs

Summary

connection() step always throws an error: Cannot read properties of undefined (reading 'items') coming from this area in connection.ts.

Steps to reproduce

I've got a resolver set up which builds through graphile-build and graphile-export to this code:

const Query_seasons_extensions = {
  __proto__: null,
  grafast: {
    plan(_) {
      return connection(
        registry.pgResources.document.find({
          type: "season",
        }),
      )
    },
  },
}

which seems like the most straightforward use of connection: passing it a PgSelectStep.

Expected results

See no errors

Actual results

Got the aforementioned error

Additional context

Relevant versions:

"@dataplan/pg": "1.0.0-rc.7",
"grafast": "1.0.0-rc.8",
"graphile-build": "5.0.0-rc.5",
"graphile-config": "1.0.0-rc.5",
"graphile-export": "1.0.0-rc.5",
"graphile-utils": "5.0.0-rc.7",
"graphql": "16.13.0",
"pg": "^8.11.5",
"pg-sql2": "5.0.0-rc.4",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🌳 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions