Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Feature Request] Support for Abstract Service and Controller in MongoDB Framework #831

Closed
wtt40122 opened this issue Apr 22, 2024 · 0 comments

Comments

@wtt40122
Copy link
Collaborator

Description:
I would like to request the addition of support for abstract service and controller layers in the MongoDB framework. This feature would greatly enhance the development experience by allowing for a more structured and reusable approach to database interactions and API design.

Use Case:
The ability to define abstract services and controllers would enable developers to:

Create a consistent API layer that can be extended for specific application needs.
Promote code reusability and reduce duplication by abstracting common database operations.
Simplify the integration of MongoDB with various application frameworks and architectures.
Proposed Features:

A set of abstract base classes or interfaces for services and controllers that interact with MongoDB.
Support for common CRUD operations within these abstract layers.
Integration with existing dependency injection systems to allow for seamless implementation swapping.
Implementation Suggestions:

The framework could provide an AbstractMongoService class with methods like find, save, update, and delete.
An AbstractMongoController could be provided with action methods that correspond to the CRUD operations, leveraging the service layer.
Developers could extend these abstract classes to implement business logic specific to their application.
Benefits:

Improved code organization and maintainability.
Easier onboarding for new developers due to a standardized approach to database interactions.
Potential for a modular system where different services and controllers can be mixed and matched as needed.

wtt40122 pushed a commit that referenced this issue Apr 23, 2024
…#832)

* update

* The vertices of the graph support the map data structure clsoe(#810)

* upport for Abstract Service and Controller in MongoDB Framework #831
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant