Pop-Code / nestjs-mongo

A nestjs module for mongo
https://www.npmjs.com/package/nestjs-mongo
MIT License
4 stars 1 forks source link

Current status of the project #163

Open maku opened 3 years ago

maku commented 3 years ago

I am looking for a lib using mongodb in nestjs (without mongoose).

So my question is how stable is the code base and is it used in a real project?.

I looked at the source code and there is already quite a lot of functionality (but I haven't tried it yet).

But I'm curious and the project only has 3 stars. What is the assessment in this regard. Is it complicated to use because there is no documentation?

Rmannn commented 3 years ago

Hi, this project is under active dev.

We do not have the time to write the documentation but we will do it soon as this project is used under production. 3 stars yes, without doc the project is not really easy to understand.

The concept is simple:

1 you init the module using forRoot static module method 2 you create an entity that extends the default Entity from the module 3 you init the models you need using forFeature static module method in your modules 4 you create (if you need) an EntityService, a service to manage each entity with the matching Entity MongoRepository injected. 5 you inject your Mongo repositories or the MongoManager where you need them.

You can use class-transformer to defined custom types You can use class-validator decorators to defined custom validation rules.

And more.

The doc should be ready next year.

maku commented 3 years ago

@Rmannn Thank you for the information

revskill10 commented 6 months ago

Any update ?