Closed raphaelbs closed 2 years ago
@adborroto thanks for the suggestion. Added on https://github.com/mixmaxhq/mongo-cursor-pagination/pull/320/commits/7a05f30859f03b1381957ce25358ecc4b9ce362d
:tada: This PR is included in version 7.7.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Changes Made
Enable the use of a custom collation for a single
find
oraggregate
call.Why: Using the default
config.COLLATION
means we must re-index the collections to ensure our indexes match the collation. Conversely, we could use the static configuration for a single call but it opens a breach for race-condition issues:With the PRs code, we can use:
Potential Risks
Test Plan
Checklist