parse-server
parse-server copied to clipboard
feat: Skip indexes for Azure Cosmos DB for MongoDB
Pull Request
- Report security issues confidentially.
- Any contribution is under this license.
- Link this pull request to an issue.
Issue
Closes: #8492
Approach
By adding a switch in options called "azureCosmosMongoDbCompatibleMode". Setting it to true would bypass some indexes to be created when you would like to use Azure Cosmos DB for MongoDB as the database.
Normally, by default, this is off, and there should not be any impact on existing behaviors.
Tasks
- [x] Add changes to documentation (guides, repository pages, code comments)
The branch release can only be set as base branch by members of @parse-community/core-maintainers.
Pull requests are usually opened against the default branch alpha, which is the working branch. Different repositories may have base branches with different names. If you are sure you need to open this pull request against a different branch, please ask someone from the team mentioned above.
Thanks for opening this pull request!
This should probably be rather a MongoDB adapter option, than an option on the root level of Parse Server.
As mentioned in the linked issue, I have made the changes by (a) splitting into separate options (b) move to DatabaseOptions node (seems no MongoDb node? so I think it should be here). Please review, thanks.
@EraserKing @mtrezza maybe related https://github.com/parse-community/parse-server/pull/8042
Is this feature coming anytime soon?