Open Disorrder opened 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
/admterritory?include=population
include
@Disorrder this library is unmaintained and it's not accepting pull request.
You have two solutions:
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 withoutinclude
in query