0
나는 다음이있는 account
모델을 가지고있다. 두 모델 모두 staff
모델을 가리킬 수있는 방법이 있습니까?여러 관계는
행운이 없습니다. 감사!
업데이트 : - :
{
"data": {
"type": "account",
"id": "17",
"attributes": {
"businessId": 1,
"userId": 22,
"scopes": [
"customer",
"customer-22"
],
"keyCode": null,
"lockboxCode": null,
"notes": null,
"active": false,
"createdAt": "2017-01-31T20:13:39.465Z",
"updatedAt": "2017-02-20T03:49:17.308Z",
},
"relationships": {
"business": {
"data": {
"type": "business",
"id": "1"
}
},
"customer": {
"data": {
"type": "customer",
"id": "22"
}
},
"secondaryStaff": {
"data": null
},
"primaryStaff": {
"data": {
"type": "staff",
"id": "1"
}
}
}
}
}
에서 봐 주시기 바랍니다'keyForRelationship' 내가 실종됐다 정확히 무엇을이었다. 고마워요! – jdixon04
JSON API 어댑터를 사용할 때 실제로이 기능을 사용할 수없는 것 같습니다. 위의 업데이트 된 게시물을 참조하십시오. 감사! – jdixon04
안녕하세요 - 당신이 약간의 변경을했다는 통지를 받았지만 더 이상 존재하지 않는다고 생각했습니다. 그것을 제거 했습니까? – jdixon04