You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multiple query filters on array fields produce "Alias "x" is already used in this query" error #8517
When you add multiple query filters onto a array field, for example through access control functions and filterOptions using a Postgres server, Drizzle will throw an error like Error: Alias "" is already used in this query.
The reproduction repository I created is using the Nested docs core plugin to reproduce the error. The plugin adds filterOptions onto the parent field, this in combination with my access control function on the users collection is enough to trigger the error.
Reproduction Steps
When the parent dropdown is opened from the UI and the filterOptions is triggered, which filters on the breadcrumbs field in addition to my access control query, the error is triggered.
Activity
fix(db-postgres): alias already in use in this query (#8823)
r1tsuu commentedon Oct 22, 2024
Hey @dsod, thank you for you issue!
Fixed in #8823
github-actions commentedon Oct 24, 2024
🚀 This is included in version v3.0.0-beta.118
github-actions commentedon Oct 25, 2024
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.