Select = *,PropertyName不返回Microsoft Graph api中PropertyName的值

时间:2018-05-03 16:56:10

标签: odata microsoft-graph onedrive

在Graph Explorer中,如果我发出请求:

Current value is : 7
Left child is : 9
Right child is : 17
Current value is : 9
Left child is : 15
Right child is : 12
Current value is : 17
Left child is : 25
Right child is : 22
Current value is : 15
Left child is : 1769234787
Right child does not exist
Current value is : 12
Left child does not exist
Right child does not exist
Current value is : 25
Left child does not exist
Right child is : 1852112910
Current value is : 22
Left child is : 1395618676
Right child is : 1701994856

我没有从MS Graph中获取sharepointIds属性。

如果我从select query参数中删除/v1.0/users/[User.Id]/drive/root/children?$select=*,sharepointIds 并仅请求*属性,那么我将获得sharepointIds属性及其值。

sharepointIds

我希望v1.0/users/[User.Id]/drive/root/children?$select=sharepointIds 在同一回复中返回默认属性和$select=*,sharepointIds

客户端是否有另一种工作方式可以从Microsoft Graph请求其他属性,而无需逐个键入对象中的所有属性名称,包括默认属性?

基础OneDrive API似乎正确处理sharepointIds

1 个答案:

答案 0 :(得分:0)

今天不可能。 Microsoft Graph目前不支持$select查询参数中的通配符。您要返回的每个属性都必须在$select中明确列出。