-1
有没有什么办法来查询相关模型相关模型像post
\获取:Loopbackjs查询通过REST API相关的模型
{"order": "created_at DESC","include":[{"relation": "user"}]
但是,在我的user
模式存在的关系hasone
与settings
模型。我也想从post
\ Get rest api查询。我试过:
{ "include": { "relation": "user","include": {"relation":"settings"}}}
但没有运气。
也许我对另一个问题的回答可以帮助你:https://stackoverflow.com/questions/45760175/multiple-includes-on-different-depths-in-a-loopback-node-js-query/45769344#45769344 –