-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Open
Labels
type:featureNew feature or improvement of existing featureNew feature or improvement of existing feature
Description
New Feature / Enhancement Checklist
- Report security issues confidentially.
- Any contribution is under this license.
- Before posting search existing issues.
Current Limitation
There are databaseURI , databaseOptions, collectionPrefix and databaseAdapter as config options. That is redundant:
- It seems to be that
databaseOptionstakes some Parse Server custom options and some options that are then passed directly to the DB client. This requires complex filtering. - There are many native DB client options that are not supported by Parse Server because Parse Server validates native DB client options before passing them on. This validation is unnecessary and causes Parse Server to chronically lag behind supporting the latest DB driver options.
Feature / Enhancement Description
- Remove
databaseOptionsand move the Parse Server native options, likeenableSchemaHooks,schemaCacheTtl, etc. into a new sub keyDatabaseAdapter.options. The DB client options can already be passed viaDatabaseAdapter.mongoOptionsfor example. It may make sense to keepdatabaseOptionsfor Parse Server native options if it turns out too complex to pass them via the DB adapter, as it affects features like schema hooks that are implemented in Parse Server core, rather than the DB adapter. - Remove option
databaseURI, as this can already be provided viaDatabaseAdapter.uri. - Remove any obsolete logic like parsing the
databaseURIstring to auto-determine which DB the URI points to, to then automatically load the correct adapter.
This is in line with the larger plan to move all DB adapters out of the Parse Server core repository.
Example Use Case
Alternatives / Workarounds
3rd Party References
Metadata
Metadata
Assignees
Labels
type:featureNew feature or improvement of existing featureNew feature or improvement of existing feature