Answer the question
In order to leave comments, you need to log in
Should I hardcode the "model" of a record in a collection when using a non-relational database?
Good evening! When developing applications on Meteor, I most often hard-code the model for writing to the collection. Is it worth it to do so? Or is it better to untie the hands and leave them as simple objects?
What do you think about this? I know that there is no clear answer to this question, but it would be interesting to read your opinions.
Answer the question
In order to leave comments, you need to log in
And if tomorrow they ask you to change the database? In my opinion, it is better for the application as a whole not to know anything about the database and work with one tool (model). So you won't have to think about how controllers, views, etc. will react. if something happens to the data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question