MS Graph API 搜索和计数无法协同工作

问题描述 投票:0回答:1

我正在使用 MS Graph API 搜索收件箱消息。这是要求

https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$search="attachment:blabla"&$count=true

我还将标题设置为“ConsistencyLevel”:“eventual”

执行请求后,我在响应中没有看到@odata.count。我确实在回复中看到了其他键,例如 @odata.contextvalue

对我来说,搜索和计数似乎不能一起工作。如果我错了请纠正我?

我正在关注此处的文档https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-beta&tabs=http#optional-query-parameters

任何正确方向的见解都会受到高度赞赏。谢谢你

rest outlook microsoft-graph-api microsoft-graph-mail
1个回答
0
投票

我想已经太晚了,但如果有人面临同样的问题,那么只需删除 $expand 就可以了。根据 graph api $expand 目前不支持高级查询。

© www.soinside.com 2019 - 2024. All rights reserved.