Skip to content

Commit 778d2cd

Browse files
2 parents 5d61695 + a1f06b7 commit 778d2cd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

msgraph-chaos-proxy/Move-to-JS-SDK.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Move to the Graph JavaScript SDK
22

3-
The Microsoft Graph JavaScript SDK comes with features that will simplify your code and let you focus on building your app. The SDK not only helps you handle API errors but also makes it easier for you to perform complex API operations like batch requests.
3+
The Microsoft Graph JavaScript SDK comes with features that will simplify your code and let you focus on building your app.
4+
5+
Using the SDK makes it easier for you to
6+
7+
- Handle API errors for when things don't work as expected, such as when services throttle under heavy load
8+
- Perform complex API operations like batch requests
9+
- Handle binary responses, such as obtaining the photo of a user
410

511
## Migrate from fetch to the Graph JavaScript SDK
612

@@ -148,4 +154,4 @@ An easier way to handle throttling, and other errors, is to use the Graph JavaSc
148154
```javascript
149155
const json = await graphClient.api('/me').get();
150156
// do something here
151-
```
157+
```

0 commit comments

Comments
 (0)