-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conslidate verification failure callbacks in `createPersistedQueryMan…
…ifestVerificationLink` to single `onFailedVerfication` callback (#308)
- Loading branch information
1 parent
9558d6d
commit b5ca31c
Showing
3 changed files
with
154 additions
and
158 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
"@apollo/persisted-query-lists": patch | ||
--- | ||
|
||
**`createPersistedQueryManifestVerificationLink`** | ||
|
||
- Consolidate the callbacks to a single `onVerificationFailed` callback with a `reason` property that describes the verification failure. | ||
- The full `operation` is now available as a property to the `onVerificationFailed` callback. | ||
|
||
```ts | ||
createPersistedQueryManifestVerificationLink({ | ||
onVerificationFailed(details) { | ||
// The reason the verification failed, such as an anonymous operation | ||
console.log(details.reason) | ||
|
||
// The operation that caused the verification failure | ||
console.log(details.operation) | ||
} | ||
}) | ||
``` |
This file contains 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
Oops, something went wrong.