Skip to content

argument not defined on connection_type when lazy load #5419

@yk-eta

Description

@yk-eta

Describe the bug
argument not defined on connection_type when lazy load

Versions
graphql: 2.5.11
rails: 8.0.2

GraphQL schema

class Resolver::Test < Resolver::Base
   type Interface::TestInterface
end

module Interface::TestInterface
  field: field1, "test" do
     type Type::Test.connection_type
  end
end

GraphQL query

Example GraphQL query and response (if query execution is involved)

query test {
  test {
    field1(first: 1) { something }
  }
}
"errors": [
    {
      "message": "Field 'replies' doesn't accept argument 'first'",
      "locations": [
        {
          "line": 64,
          "column": 7
        }
      ],
      "path": [
        "query test",
        "test",
        "field1",
        "first"
      ],
      "extensions": {
        "code": "argumentNotAccepted",
        "name": "field1",
        "typeName": "Field",
        "argumentName": "first"
      }
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions