humanjs icon indicating copy to clipboard operation
humanjs copied to clipboard

Relationships between models example

Open adamavenir opened this issue 11 years ago • 1 comments

http://docs.humanjavascript.com/#human-model-model-relationships says:

"From our experience, derived properties work really well for handling relationships between models. Let's say you've got a model representing people and model representing a group of people. Often your API for fetching people would include something like a groupID as a property for each person you retrieve."

Having an example of this right below this paragraph would be useful.

adamavenir avatar Oct 30 '13 06:10 adamavenir

Yep, agreed. Also we should probably include a sample relationship in the generated app too.

HenrikJoreteg avatar Oct 30 '13 06:10 HenrikJoreteg