-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
Description
I have the following MessageResource:
DS.defineResource({
changesOnly: true,
name: 'message',
endpoint: 'messages',
relations: {
belongsTo: {
user: {
localField: 'user',
localKey: 'user_id'
},
job: {
parent: true,
localField: 'job',
localKey: 'job_id'
},
estimate: {
parent: true,
localField: 'estimate',
localKey: 'estimate_id'
}
}
}
});
If I do
payload.job = job;
MessageResource.create(payload)
It POST /messages when it should post to /jobs/xxx/messages, but if I remove the parent: true, from the estimate relations it works as expected.
I followed whats documented in here #305
Thanks
Metadata
Metadata
Assignees
Labels
No labels