node.js - Handling CRUD with mongodb using Express.js building a REST API -
i working on rest api using express 4. api layer access mongodb database. database have hundreds of different objects. example there looking like
alt1
{ name: sting, number: int }
alt2
{ name: sting, temp: int, length: int }
my questions each object needs own data model mongoose , basic crud routes defined?
for example above there 2 datamodels , 2*4 routes define basic crud operations?
Comments
Post a Comment