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-mongodb): joins with singular collection name #8933

Conversation

r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Oct 29, 2024

What?

Properly specifies $lookup.from when the collection name is singular.

Why?

MongoDB can pluralize the collection name and so can be different for singular ones.

How?

Uses the collection name from the driver directly adapter.collections[slug].collection.name instead of just slug.

@DanRibbens DanRibbens merged commit f4041ce into beta Oct 30, 2024
52 checks passed
@DanRibbens DanRibbens deleted the fix/db-mongodb-joins-field-properly-specify-collection-to-lookup-as-it-can-be-singular branch October 30, 2024 16:06
Copy link

🚀 This is included in version v3.0.0-beta.121

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.

2 participants