jakubrohleder / angular-jsonapi

Simple and lightweight, yet powerful ORM for your frontend that seamlessly integrates with your JsonAPI server.
http://jakubrohleder.github.io/angular-jsonapi/
GNU General Public License v3.0
96 stars 34 forks source link

Don't include relationship if type "hasMany" #51

Open Disorrder opened 7 years ago

Disorrder commented 7 years ago
const admterritorySchema = {
    type: 'admterritory',
    id: 'string',
    attributes: {
      // ...
    },
    relationships: {
        population: {
            included: true,
            type: 'hasMany',
            model: 'population',
            reflection: false
        }
    }
};

If I write 'hasOne' in type, it will send request like /admterritory?include=population and it's good. But if I write 'hasMany', it sends request without include in query

pablorsk commented 7 years ago

@Disorrder this library is unmaintained and it's not accepting pull request.

You have two solutions: