如何在 Microsoft Graph Mail API 上对 $filter 使用 'in' 运算符?

How can I use the 'in' operator for $filter on Microsoft Graph Mail API?

我正在尝试使用 Microsoft Graph mail api 通过 in 运算符查询少量电子邮件,但找不到示例。

这就是我尝试使用它的方式: https://graph.microsoft.com/v1.0/me/messages?$filter=(from/emailAddress/address)'test@email.com, tester@address.com'

在他们的 documentation 中,它说您可以对 $filter 使用 in 运算符。

我不反对其他答案,如果有人正在寻找 IN 运算符使用格式,我只是留下这个片段:

$filter=displayName in ('group-1', 'group-2')

编码后的完整 url 示例:

https://graph.microsoft.com/v1.0/groups?$filter=displayName%20in%20%28%27group-1%27%2C%20%27group-2%27%29