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

Relay Connection dont work with secondary tables #220

Open
Ckk3 opened this issue Nov 30, 2024 · 0 comments
Open

Relay Connection dont work with secondary tables #220

Ckk3 opened this issue Nov 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ckk3
Copy link
Contributor

Ckk3 commented Nov 30, 2024

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.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@Ckk3 Ckk3 added the bug Something isn't working label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant