Created
April 30, 2021 13:19
-
-
Save liamgriffin/dd1bddd05800eb0c7e895a6c9d7de581 to your computer and use it in GitHub Desktop.
Implementing API Rate Limits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await graphQLClient.rawRequest(productUpdateMutation, productInput).then(({ errors, data, extensions, headers, status })) => { | |
console.log(JSON.stringify(data, undefined, 2)) | |
console.log(`There are ${extensions.cost.throttleStatus.currentlyAvailable} rate limit points available/n`) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment