Skip to main content

Office 365: Developer Blog

Microsoft Graph SDK for JavaScript Release Notes

We recently updated our JavaScript Graph SDK to version 1.4.0 and our Typescript Graph Types package to 1.6.0. The SDK release includes several new features and some bug fixes. The Typescript types includes updates to the models for Teams and Devices.

Page Iterator

Often collections of entities are split into pages and each page is returned with a URL to the next page.  The PageIterator class simplifies consuming paged collections.  Simply provide a callback method that will operate on each item in the paged collection and call the Iterate method.  The PageIterator class will take care of following the NextLinks for you.

Iterate over all the messages

If you want to stop the iterator before it iterates through the entire collection, you can simply return false from the callback.

Added Search query param functionality

Use the .search() function to perform a free text search over a collection of entities.

Bug Fixes:

JavaScript SDK

Typescript Graph Types