Skip to content

Relay Connection dont work with secondary tables #220

@Ckk3

Description

@Ckk3

Describe the Bug

While working on #218 , I identified a bug where a query using relay.ListConnection unexpectedly generates two DepartmentConnection objects when handling relationships involving a secondary table.

Upon investigation, it appears this issue originates from the Relay implementation rather than the secondary table logic itself. As a result, I’ve chosen to track and address this as a separate issue instead of including a fix in the original PR.

System Information

  • Operating system:
  • Strawberry version (if applicable):

Additional Context

A test case demonstrating this issue has been added to make debugging easier. You can find it in tests/relay/test_connection.py under the name test_query_with_secondary_table_with_values_list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions