Open
Description
When you have a relationship with:
async: false
- server includes
link
- server does not include
data
You get the warning:
You pushed a record of type 'organization' with a relationship 'subscriptions' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. EmberData will treat this relationship as known-to-be-empty.
But it's not an error, it's on purpose and it's perfectly legal. When data
is not present, it's a violation of JSON:API spec to treat the relationship as known-to-be-empty. It should be treated as unloaded.
Like any synchronous relationship that is unloaded, trying to access it should generate an error, so that the developer realizes they need to either sideload it or use the reference API to fetch it explicitly.
Metadata
Metadata
Assignees
Type
Projects
Status
needs champion
Status
Quest Issues