Skip to content

feat: add config to request standard object and dependency middleware implementation #8479

Open
@Moumouls

Description

@Moumouls

New Feature / Enhancement Checklist

Current Limitation

No way to leverage inversion of control/dependency injection properly for each request

Feature / Enhancement Description

Parse Server is build following Hexagonal software architecture, and originally heavily use inversion of control patterns, that allow parse server to be easily extendable and customizable.

Currently there is no way to add some custom controllers with request granularity to the parse config. Following the Parse Server DNA, developers should be able to modify config per request, mutate config object if needed. Then the config is forwarded to each Parse Server hooks, and even in each Parse Server GraphQL resolvers.

Example Use Case

See the linked PR
#8480

In my company we already use this feature from my fork to implement elegantly custom controllers related to request data (user, keys etc...), and for example a "FeatureFlagController".

Alternatives / Workarounds

No workarounds

3rd Party References

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions