是否可以$展开多个属性。例如:
https://graph.microsoft.com/beta/me ?$expand=memberOf,经理
这将导致错误。
The result of parsing $expand contained at least 2 items, but the maximum allowed is 1.
最佳答案
编辑:我知道这是一个相当老的问题,但对于将来在此结束的任何人:
可以(在某些情况下)使用以下语法:
$expand=relation1($select=id,name),relation2($expand=relation2a($select=id))
很难确定扩展将在哪里工作,因为文档相当回避,但我已经成功地完成了上述工作。 也许您的案例缺少的部分是在扩展中指定内部查询参数?
示例:
https://graph.microsoft.com/v1.0/me/messages/AAMkADFjM...ATjA9VZAAA=?$expand=singleValueExtendedProperties($filter=id eq 'string 0x1a'),microsoft.graph.eventMessage/event
关于azure - 在具有多个属性的 Graph API 查询中使用 $expand?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44661569/