Skip to content

Commit 3640ee8

Browse files
committed
Update changeset
1 parent 7b66b6a commit 3640ee8

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.changeset/sharp-glasses-sneeze.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@ createPersistedQueryLink({
2828
});
2929
```
3030

31-
The `response` property has also been removed. To access partial data returned in GraphQL responses, access the `data` property on the `CombinedGraphQLErrors` instance.
31+
The `response` property has also been renamed to `result`.
3232

3333
```diff
3434
createPersistedQueryLink({
35-
disable: (errorResponse) => {
36-
- if (errorResponse.response) {
37-
- const data = errorResponse.response.data;
38-
+ if (CombinedGraphQLErrors.is(errorResponse.error)) {
39-
+ const data = errorResponse.error.data;
35+
- disable: ({ response }) => {
36+
+ disable: ({ result }) => {
4037

4138
// ... handle GraphQL errors
4239
}

0 commit comments

Comments
 (0)