Combining Batch & Delta Query (deltaLink) on Microsoft Graph -


use case: interested in tracking changes user's messages , events.

using delta query (https://developer.microsoft.com/en-us/graph/docs/concepts/delta_query_overview) can achieve this, need send 2 requests against graph: 1 messages, 1 events.

batching (https://developer.microsoft.com/en-us/graph/docs/concepts/json_batching, preview) allows me send multiple requests @ once, , neither known issues (https://developer.microsoft.com/en-us/graph/docs/concepts/known_issues#json-batching) nor odata spec indicate batch-sending deltalinks disallowed.

is supported scenario or trying mis-use either batch or delta query?

we not special in batching delta requests currently. if want send multiple delta queries can send inside batch request calling “/version/$batch”. batch response contain individual responses, each own nextlink/deltalink. clients can parse response, extract nextlink, create new request nextlink , put inside batch request or send individual request. here example of using delta request inside batch :

post /beta/$batch http/1.1 {   "requests": [     {       "url": "/users/delta?$select=displayname,givenname,surname",       "method": "get",       "id": "1"     }   ] } host : graph.microsoft.com 

reference : https://developer.microsoft.com/en-us/graph/graph-explorer?request=$batch&method=post&version=beta


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -