You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 22, 2026. It is now read-only.
If it's still the case that the optional {resource: 'direct-reports', type: 'employees'} isn't documented (much/well) I want to suggest to rename the resource property of that object to relation. So:
If it's still the case that the optional
{resource: 'direct-reports', type: 'employees'}isn't documented (much/well) I want to suggest to rename theresourceproperty of that object torelation. So:2 reasons:
relation. Which is what we end up using internally.meta.relation.Many times there isn't really a resource (either defined in terms of ember-jsonapi-resources or defined in terms of a JSONAPI url/resource to request) by this name. It is the name of the relationship a Resource has with some other Resource of a certain type. As defined by type.
To illustrate using urls:
http://api.pixelhandler.com/api/v1/supervisors/1/relationships/`resource`
vs
http://api.pixelhandler.com/api/v1/supervisors/1/relationships/`relation`
would make more sense since:
http://api.pixelhandler.com/api/v1/direct-reports does not exist. It is not a resource.
(I'll be happy to do the work for this. Including changes to docs)