You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I find A with B like this /api/A {filter:{include:"B"}}} I will get this data
[{
id:1
AreaCode:"test1",
B:{Name:"xxxxx"} // (if A id 1 hasOne B)
}.{
id:2
AreaCode:"test2", // (A id 2 don't haveOne B)
}......]
But I want to get this data
[{
id:1
AreaCode:"test1",
B:{Name:"xxxxx"} // (if A id 1 hasOne B) only get data A has B
},{
id:3
AreaCode:"test1",
B:{Name:"XXXX"}
}......(A hasOne B's data)]
so I try find A with B like this /api/A
{filter:{include:"B",where:{B:{neq:''}}}}}} or
{filter:{include:"B",where:{neq:{B:''}}}}}}
it's doesn't work!!
How i to write filter ??or to do??
The text was updated successfully, but these errors were encountered:
In model A
In model B
if I find A with B like this /api/A {filter:{include:"B"}}} I will get this data
But I want to get this data
so I try find A with B like this /api/A
{filter:{include:"B",where:{B:{neq:''}}}}}} or
{filter:{include:"B",where:{neq:{B:''}}}}}}
it's doesn't work!!
How i to write filter ??or to do??
The text was updated successfully, but these errors were encountered: