-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Postgres: Self-Join Not Working #10144
Comments
Hey @r1tsuu - Thanks for the fix! It seems like the depth parameter isn't working as expected. It only functions for depths 0 and 1. In my use case, I have nested categories up to depth 5, for example. |
🚀 This is included in version v3.12.0 |
Hey @r1tsuu and @DanRibbens – I rechecked the issue after the 3.12.0 release. It looks like the depth for join fields still only supports values of 0 and 1. |
Hey! Could you open a new issue for this? I think it's different from what was fixed, we will look into this in either way but that would be easier to track |
This issue has been automatically locked. |
Describe the Bug
When using a PostgreSQL database and creating a join field on a collection that references itself (self-join), the referenced documents are not displayed or fetched as expected. Specifically:
Link to the code that reproduces this issue
https://github.com/tobiasiv/payload-reproduction/tree/self-join
Reproduction Steps
pnpm dev
Which area(s) are affected? (Select all that apply)
db-postgres, area: ui
Environment Info
The text was updated successfully, but these errors were encountered: