Reputation: 1
Delta query on users returns minimal data on changes using the header (Prefer Return = minimal).
Graph Explorer : https://graph.microsoft.com/v1.0/users/delta
C# : await graphClient.Users.Request().GetAsync();
But in the case of mailbox messages it returns all parameter, although using the header (Prefer Return = minimal).
Graph Explorer : https://graph.microsoft.com/v1.0/users/userid/mailFolders/inbox/messages/delta
C# : await graphClient.Users[userId].MailFolders[folderId].Messages.Delta().Request().GetAsync();
Is there any way to get the minimal data on mailbox message changes with delta query?
Upvotes: 0
Views: 347
Reputation: 33094
The Message delta documentation only defines a header for limiting the page size:
Each delta query GET request returns a collection of one or more messages in the response. You can optionally specify the request header,
Prefer: odata.maxpagesize={x}
, to set the maximum number of messages in a response.
If you want to track a specific set of properties, you can limit the response using the $Select
query parameter:
You can use a
$select
query parameter as in any GET request to specify only the properties your need for best performance. Theid
property is always returned.
Only AAD resources support the Prefer: return=minimal
header.
Upvotes: 1