-
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
Join field causing 500 error with hasMany field #8630
Comments
DanRibbens
pushed a commit
that referenced
this issue
Oct 10, 2024
Fixes #8630 - Fixes `hasMany: true` and `localized: true` on the foreign field - Adds `limit` to the subquery instead of hardcoded `11`. - Adds the schema path `field.on` to the subquery, without this having 2 or more relationship fields to the same collection breaks joins - Properly checks if the field is `hasMany`
We didn't handle |
🚀 This is included in version v3.0.0-beta.113 |
This issue has been automatically locked. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Link to reproduction
No response
Environment Info
Binaries:
Node: 18.20.3
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant Packages:
payload: 3.0.0-beta.112
next: 15.0.0-canary.173
@payloadcms/db-postgres: 3.0.0-beta.112
@payloadcms/email-nodemailer: 3.0.0-beta.112
@payloadcms/email-resend: 3.0.0-beta.112
@payloadcms/graphql: 3.0.0-beta.112
@payloadcms/next/utilities: 3.0.0-beta.112
@payloadcms/plugin-cloud: 3.0.0-beta.112
@payloadcms/plugin-cloud-storage: 3.0.0-beta.112
@payloadcms/richtext-lexical: 3.0.0-beta.112
@payloadcms/storage-s3: 3.0.0-beta.112
@payloadcms/translations: 3.0.0-beta.112
@payloadcms/ui/shared: 3.0.0-beta.112
react: 19.0.0-rc-3edc000d-20240926
react-dom: 19.0.0-rc-3edc000d-20240926
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Available memory (MB): 32682
Available CPU cores: 20
Describe the Bug
I just updated to
3.0.0-beta.112
and tried adding a join field to my categories collection. It has a correspondinghasMany
field in the knowledgebase collection. I get the following error when trying to create a new category:NOTE: Error goes away if I remove the
join
fieldReproduction Steps
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: