angularjs - MeanJS: Generate the Sub-CRUD-Module with the generator? -
i have crud-entity strong relationship entity, comments posted , viewed above article.
i want use document db structure. every comment should saved in article. dont want have comments collection in every comment saved , referenced articles collection, relational db structure suggest.
my question is: best practice create document style sub crud module in mean.js?
should i...
- generate it, disable creation in collection , link angular-controllers/views across modules?
- generate it, disable creation in collection , move files father crud module?
- refrain generating it, create needed files direct in father module?
create needed files direct in father module.
i did similar avoid referencing other documents, can edit module schema embed schema schema, check link:
http://www.jonahnisenson.com/schema-within-a-schema-use-embedded-documents-in-mongoosemongo/
Comments
Post a Comment