如何计算 MicrosoftGraph EntitySet 中的项目数,例如“用户”或“组”?我试过了:
https://graph.microsoft.com/v1.0/users ?$count 返回:列出所有用户
https://graph.microsoft.com/v1.0/users/ $count 返回:{ "error": { "code": "Request_BadRequest", "message": "Unexpected Segment Edm.Int32.", } }
同样在目标“microsoft.graph.directoryObject”的注释中,这些实体集基于我看到它是 Selectable=false, Countable=false ...
$skip 在“用户”或其他顶级 EntitySet 项目( https://graph.microsoft.com/v1.0/groups ?$skip=5)上是否可用?它可用于其他项目 ( https://graph.microsoft.com/v1.0/me/contacts ?$skip=5 )。我知道 $skipToken,但不一样。
如果属性是可排序的,我可以在 $metadata 中找到某处吗?例如 user.displayName 是可排序的,但 user.mail 或 user.givenName 不是。这在 $metadata 中会很方便。有计划将其引入 $metadata 吗?
此公式中的 OrderBy DESC https://graph.microsoft.com/v1.0/users ?$orderBy=displayName%20desc被忽略,它显示按 ASC 排序的项目,我做错了吗?