以下过滤器子句在Graph Explorer中不起作用
https://graph.microsoft.com/v1.0/drives?$ filter = name eq 'Documents'
过滤器的应用是否有任何限制,因为指定的过滤器是根据OData协议
以下过滤器子句在Graph Explorer中不起作用
https://graph.microsoft.com/v1.0/drives?$ filter = name eq 'Documents'
过滤器的应用是否有任何限制,因为指定的过滤器是根据OData协议
1 回答
OneDrive API(以及驱动器上的Graph API)不支持过滤或排序结果 . 当Microsoft Graph看到它不期望的查询参数时,它只是忽略未知的过滤器参数并返回未经过滤的结果 . drives api支持$ expand,$ select,$ skipToken,$ top和$ orderby(orderby不起作用)OData查询参数来自定义响应 .
我的测试数据:https://graph.microsoft.com/v1.0/drives?$ filter = name eq 'Documents' / $ filter = driveType eq 'documentLibrary'“: