Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Example of parent-child objects and embedded documents #163

Closed
davecyen opened this issue Aug 29, 2014 · 1 comment
Closed

Example of parent-child objects and embedded documents #163

davecyen opened this issue Aug 29, 2014 · 1 comment

Comments

@davecyen
Copy link

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!

@davecyen davecyen changed the title Example of parent-child objects Example of parent-child objects and embedded documents Aug 29, 2014
@enkodellc
Copy link
Contributor

Does this help? linnovate/mean#511

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants