You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add support for ES5. Make sure to use `graph-js-sdk-web.js` for web apps
26
+
* Removed iterator helper method.
27
+
24
28
#### 0.3.1
25
29
* Support for Node.js versions 4 and 5
26
30
@@ -232,26 +236,6 @@ client
232
236
233
237
## Other API methods
234
238
235
-
### Iterating results
236
-
We provide a helper method for iterating through results so you don't have to handle paging with skip tokens. Instead of calling `.get()`, use `.getResultIterator()`. Call `.next()` on the iterator to get the next value and fetch the next page if necessary.
237
-
> **Note:** This feature requires ES6 generators, so it is not available on all platforms yet. Check [this compatibility info table](http://kangax.github.io/compat-table/es6/#test-generators) for details.
238
-
239
-
````javascript
240
-
let iter = client
241
-
.api('/me/messages')
242
-
.getResultIterator();
243
-
244
-
// Example function that prints the subject of your messages
245
-
functiongetNextMessage() {
246
-
iter.next().value((err, res) => {
247
-
console.log(res.subject);
248
-
getNextMessage();
249
-
})
250
-
}
251
-
252
-
getNextMessage();
253
-
````
254
-
255
239
### .version()
256
240
Passing in a version through `.version()` has the highest priority. It overrides the Microsoft Graph client default version from `.init()` and the global library default (currently v1.0).
0 commit comments