Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Add compatibility for MongoDB Atlas Serverless and AWS Amazon DocumentDB with collation options enableCollationCaseComparison, convertEmailToLowercase, convertUsernameToLowercase #8805

Merged
merged 5 commits into from
Nov 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/Options/index.js
Co-authored-by: Manuel <5673677+mtrezza@users.noreply.github.com>
Signed-off-by: Mattia Faraci <82614156+mattia1208@users.noreply.github.com>
  • Loading branch information
mattia1208 and mtrezza authored Nov 11, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 622dffac8f231391394936ff7760f6738d451918
10 changes: 6 additions & 4 deletions src/Options/index.js
Original file line number Diff line number Diff line change
@@ -106,10 +106,12 @@ export interface ParseServerOptions {
/* Optional. If set to `true`, the collation rule of case comparison for queries and indexes is enabled. Enable this option to run Parse Server with MongoDB Atlas Serverless or AWS Amazon DocumentDB. If `false`, the collation rule of case comparison is disabled. Default is `false`.
:DEFAULT: false */
enableCollationCaseComparison: ?boolean;
/* Transform Email to lowercase on create/update/#/#. On queries client needs to ensure to send Email in lowercase format. */
transformEmailToLowerCase: ?boolean;
/* Transform Username to lowercase on create/update/#/#. On queries client needs to ensure to send Username in lowercase format. */
transformUsernameToLowerCase: ?boolean;
/* Optional. If set to `true`, the `email` property of a user is automatically converted to lowercase before being stored in the database. Consequently, queries must match the case as stored in the database, which would be lowercase in this scenario. If `false`, the `email` property is stored as set, without any case modifications. Default is `false`.
:DEFAULT: false */
convertEmailToLowercase: ?boolean;
/* Optional. If set to `true`, the `username` property of a user is automatically converted to lowercase before being stored in the database. Consequently, queries must match the case as stored in the database, which would be lowercase in this scenario. If `false`, the `username` property is stored as set, without any case modifications. Default is `false`.
:DEFAULT: false */
convertUsernameToLowercase: ?boolean;
/* Full path to your cloud code main.js */
cloud: ?string;
/* A collection prefix for the classes