I'm playing with Strongloop Loopback lately (ie: http://loopback.io/), it's a fantastic tool. I went through their sample cases and it works just great.
But this is basic examples ; based on simple data models as below (which is fine to start):
ORIGINAL SAMPLE
Now, if you think about a slightly more complicated data model... let say a data model about comics (http://developer.marvel.com/docs), where you have various series which are made up of several comics, and within comics you have many characters.
UPDATE: added a sub-series model between series and comics
If I translate this in loopback relations:
Serie hasMany Sub-series
Sub-series belongsTo a Serie
Sub-serie hasMany Comics
Comic belongsTo a Sub-serie
Comic hasMany Characters
Character belongsTo a Comic
Here is my issue, how to get all characters for a given serie? How should I describe this relation.