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

fix(db-postgres): select query on upload fields with hasMany: true #10029

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Dec 17, 2024

Previously, if you selected only upload hasMany: true field, you would receive an empty arrays always, because the _rels table wasn't joined in this case. Fixes the condition to count field.type === 'upload' .

@r1tsuu r1tsuu force-pushed the fix/select-with-rels branch from 2fe0eae to 0bd3dde Compare December 17, 2024 21:38
@r1tsuu r1tsuu merged commit 2ee3e30 into main Dec 18, 2024
65 checks passed
@r1tsuu r1tsuu deleted the fix/select-with-rels branch December 18, 2024 04:33
Copy link
Contributor

🚀 This is included in version v3.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant