我有一个具有以下关系的Car模型:
...
"relations": {
"belongsToUser": {
"type": "belongsTo",
"model": "MyUser",
"foreignKey": ""
},
"shop": {
"type": "belongsTo",
"model": "Shop",
"foreignKey": ""
}
}
现在,如果我尝试这个请求:
http://localhost:5000/api/cars?filter={"include": ["belongsToUser"]}
它不包括与汽车相关的用户。
如果我尝试此请求:
`http://localhost:5000/api/cars?filter={"include": ["shop"]}`
它确实正确地归还了商店。用户包含有什么问题?