You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
Are there any examples of how to implement parent child objects using embedded documents in MEAN js? I'm currently building an app that consists of a hotel object belonging to a city object. I created the objects using the yo generator, and then modified the models such that the hotel schema is embedded inside the city schema as a hotels array (using mongoose docs as a reference http://mongoosejs.com/docs/2.7.x/docs/embedded-documents.html). I'm now also re-writing the server side controllers to handle CRUD for both hotels and cities. I'm guessing my server routes may have to be modified too, and the client side angular controllers and views too. Would be awesome if there's an example out there I can follow!
The text was updated successfully, but these errors were encountered:
davecyen
changed the title
Example of parent-child objects
Example of parent-child objects and embedded documents
Aug 29, 2014
Are there any examples of how to implement parent child objects using embedded documents in MEAN js? I'm currently building an app that consists of a hotel object belonging to a city object. I created the objects using the yo generator, and then modified the models such that the hotel schema is embedded inside the city schema as a hotels array (using mongoose docs as a reference http://mongoosejs.com/docs/2.7.x/docs/embedded-documents.html). I'm now also re-writing the server side controllers to handle CRUD for both hotels and cities. I'm guessing my server routes may have to be modified too, and the client side angular controllers and views too. Would be awesome if there's an example out there I can follow!
The text was updated successfully, but these errors were encountered: