나는이 쿼리를 가지고 :포함 모델에서 루프백의 필드를 필터링하는 방법은 무엇입니까?
UserModel.find({
filter: {
include:
[
"communications",
"roles"
],
where : {
"object_type" : 1
}
}
}, function(data){
$rootScope.users = data;
});
I 필드 "OBJECT_TYPE"에 의해 통신 모델 필터의 모든 데이터를하고 싶지만 내가 원하는대로 작동하지 않습니다.
내 통신 모델은 다음과 같습니다
...
"properties": {
"object_type": {
"type": "number"
},
"object_id": {
"type": "number"
},
"communications_type_code": {
"type": "number"
},
"address_type": {
"type": "number"
},
"contact_value": {
"type": "string"
},
"notes": {
"type": "string"
},
....
덕분에 많은 약 : 귀하의 경우에 이런 일이 될 것이라고. 그것은 작동합니다! – oded