In loopback we have model relationships. Here is an example model{ id: "gdfgd", name: "companyname", ownerId: "userId", } When requesting with get endpoint the response is like that.But is there anyway to make loopback resolve those ids and send back the actual user data embedded inside the response?Something like this { id: "gdfgd", name: "companyname", ownerId: { id: "hhrtgrt", username: "username", email: "ggg@ggg.gg" }, }
Submitted February 05, 2019 at 08:24AM by Hayk94
No comments:
Post a Comment