herbsjs / herbs2mongo

Create repositories using Mongo Driver to retrieve and store Entities
MIT License
1 stars 8 forks source link

Herbs-CLI not prepared for mongo projects #22

Closed jhomarolo closed 2 years ago

jhomarolo commented 2 years ago

Is your feature request related to a problem? Please describe. When I generate a mongo project inside the CLI, the generated project is prepared for herbs2knex lib and not for herbs2mongo

FindByid: in herbs2mongo the lib don't returns an array FindAll: in herbs2mongo don't have findAll function

Describe the solution you'd like The domain code should be exactly the same regardless the database. So I think there is some work to be done on the herbs2mongo, not on the CLI.

Additional context We need to work inside herbs2mongo to keep the compatibility with herbs2knex.

italojs commented 2 years ago

the lastest version we are using different templates for mongodb projects, but I agree with you that our glues must be compatible