ChromaticHQ / jsonmonger

23 stars 1 forks source link

Feature/fetch nested relationships #14

Open agarzola opened 6 years ago

agarzola commented 6 years ago

This PR implements the nested relationship fetching described in #11. The related config option now accepts an object within which a property of the Model in question may be used as a key, and its value is another object whose key/value pairs are type: 'property' format. This informs which nested relationships should be requested using dot notation in the request to the API, like so:

/posts/1?include=author.roles

To-Do: