From 75fdd65f5f20746a1bba84f214d6804d636381af Mon Sep 17 00:00:00 2001 From: zhumeisongsong Date: Fri, 15 Nov 2024 15:43:33 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9D=20Update=20mongoose(infras?= =?UTF-8?q?tructure)=20description?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a84fd6..8946f28 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ You can use `npx nx list` to get a list of installed plugins. Then, run `npx nx | usecase(application) | Define business use cases and encapsulate business logic. | | entity(domain) | Define core business entities and business rules.
Maintain entity independence from database and framework. | | repository(domain) | Interfaces (or abstract classes), which define methods for manipulating data without concern for specific database implementations.
By defining this interface, we can decouple database access: the specific details of data access will be done by implementation classes, such as specific implementations using tools like Mongoose, TypeORM, Prisma, and so on. | -| mongoose(infrastructure) | Mongoose Schema definition.
Implement the xxxRepository interface | +| mongoose(infrastructure) | Implements the repository interfaces defined in the domain layer using Mongoose as the ODM (Object Document Mapper).
Includes Mongoose Schema definitions, database connection management, and concrete implementations of repository interfaces (e.g., MongooseUserRepository). | ## Useful links