on 11-19-2016 10:17 PM
I have 2 entities A and B which are having having 1 field in common say F1 and 1:1 relationship between them. I have defined 1:1 association between A and B.
Now my requirement is I would like to have a single service call from frontend for A which should return me 2 json objects as response (Entity A's response in 1 json object and Entity B's response in 2nd json object) in the same response.
I tried this with $expand but the problem in that is , its creating nested objected in response for A and B. I dont want nested objects in response but 2 seperate objects in the response as its not a parent child relationship , its a 1:1 relationship
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.