When retrieving the list of “master” objects, Backand Fails to retrieve “slave” objects

两盒软妹~` 提交于 2019-12-11 11:58:41

问题


When retrieving the list of "master" objects, Backand Fails to retrieve "slave" objects

app springnutjs

When retrieving the list of "master" objects (the ones with the "collection, via" field), Backand Fails to retrieve "slave" (the ones with the "object" field) objects even if it does work retrieving the "master" objects when retrieving the list of all "slave" objects


回答1:


In order to get collections ("slave") you need to use query parameter: deep=true. When calling a list of objects there is no deep at all, but when getting a single master with deep=true you will get all the children ("slaves"). For example, when you run /1/objects/master/1?deep=true you will get all slaves. Running /1/objects/master?deep=true no slaved but only related objects.



来源:https://stackoverflow.com/questions/34616275/when-retrieving-the-list-of-master-objects-backand-fails-to-retrieve-slave

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!