Unable to filter messages by recipient in Microsoft Graph Api. One or more invalid nodes : <p>I am trying to get a list of messages that are filtered by recipient from Microsoft Graph API. The url I am using for the request is:</p>

<p><code>https://graph.microsoft.com/beta/me/messages?$filter=toRecipients/any(r: r/emailAddress/address eq '[Email Address]')</code></p>

<p>But I am getting this is the response:</p>

<pre><code>{
   "error": {
        "code": "ErrorInvalidUrlQueryFilter",
        "message": "The query filter contains one or more invalid nodes.",
        "innerError": {
            "request-id": "7db712c3-e337-49d9-aa8d-4a5d350d8480",
            "date": "2016-09-28T16:58:34"
        }
    }
}
</code></pre>

<p>A successful request should look like this (with a lot more data that I have omitted).</p>

<pre><code>{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('99999999-9999-9999-9999-999999999999')/messages",
    "@odata.nextLink": "https://graph.microsoft.com/beta/me/messages?$skip=10",
    "value": [
        {
            "toRecipients": [
                {
                    "emailAddress": {
                        "name": "[Name]",
                        "address": "[Email Address]"
                    }
                }
            ],
        }
    ]
}
</code></pre>

<p>The request works if I remove the filter, and I am able to perform requests with simpler filters.</p>

<p>Is there a problem with my URL, or is there another way to make the request?</p>
