Closed castlesofplacebo closed 2 years ago
из вопросов осталось определение типа payload
в интерфейсе MessageHandler
.
What is the difference between the database
and db-methods
directories?
What is the difference between the
database
anddb-methods
directories?
Database — Used to create a connection to database and define mongoose models of entities. Database Methods — Implement wrapper methods to access database.
Database — Used to create a connection to database and define mongoose models of entities. Database Methods — Implement wrapper methods to access database.
Do we need both of them? They looks similar.
And also they both have strange names.
sorry, missclicked
Do we need both of them? They looks similar.
actually there is a deeper problem while architecture is not clean yet. had a meeting with @khaydarov and we decide to define application
and domain
layers to get the best results
new backend project structure
application
— business logicdatabase
— db schemasui
— handlers and resolvers