Skip to content

Conversation

@paulpopus
Copy link
Contributor

@paulpopus paulpopus commented Feb 18, 2025

Fixes #11137 partially

We were previously applying collation.locale to queries if locale is provided AND collation config is set however this config wasn't threaded through so it always came up undefined.

You can now add collation config collation: { strength: 1 } to enable it.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

📦 esbuild Bundle Analysis for payload

This analysis was generated by esbuild-bundle-analyzer. 🤖
This PR introduced no changes to the esbuild bundle! 🙌

@paulpopus paulpopus changed the title fix(db-mongodb): thread through the collation config so that locales can be applied feat(db-mongodb): add new useCollation config that enables the collation config applied via locales in queries Nov 19, 2025
@paulpopus paulpopus changed the title feat(db-mongodb): add new useCollation config that enables the collation config applied via locales in queries fix(db-mongodb): correctly pass through collation config in the adapter to be applied in queries via locales Nov 20, 2025
@paulpopus paulpopus requested review from DanRibbens and removed request for DanRibbens and r1tsuu November 21, 2025 16:20
@DanRibbens
Copy link
Contributor

This was supposed to be merged a while ago. I think we overlooked it after the approval.

@paulpopus paulpopus merged commit db59cb4 into main Dec 8, 2025
97 checks passed
@paulpopus paulpopus deleted the fix/mongo-db-thread-through-the-collation-config-so-that-locales-can-be-applied branch December 8, 2025 15:51
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

🚀 This is included in version v3.68.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.

Sorting works incorrectly for some international characters with mongodb adapter

3 participants