根据DOCs,lastModifiedDateTime
应该是orderby
的有效参数:
“以逗号分隔的属性列表,用于对响应集合中的项目顺序进行排序。适用于name
,size
和lastModifiedDateTime
字段。”
但是,这个请求失败了:
https://graph.microsoft.com/v1.0/me/drive/root/children?orderby=lastModifiedDateTime desc
这是一个错误吗?因为它正在使用name
根据您的描述,您希望按“lastModifiedDatetime”列出子项目顺序。
根据我的测试,它很可能是一个错误或设计。我们可以在Microsoft User Voice上发布它以让开发人员知道。