-
-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(docs) - propose way for thirth party exchanges
- Loading branch information
1 parent
7b2fc54
commit 267102d
Showing
2 changed files
with
27 additions
and
0 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
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,22 @@ | ||
# Exchanges | ||
|
||
## Persisted Queries | ||
|
||
[Repository](https://github.com/Daniel15/urql-persisted-queries) | ||
|
||
Quoting from the repository: | ||
|
||
Apollo Server implements Automatic Persisted Queries (APQ), | ||
a technique that greatly improves network performance for GraphQL with | ||
zero build-time configuration. A persisted query is a ID or hash that | ||
can be sent to the server instead of the entire GraphQL query string. | ||
This smaller signature reduces bandwidth utilization and speeds up client | ||
loading times. Persisted queries are especially nice paired with GET requests, | ||
enabling the browser cache and integration with a CDN. | ||
|
||
With Automatic Persisted Queries, the ID is a deterministic hash of the input query, | ||
so we don't need a complex build step to share the ID between clients and servers. | ||
If a server doesn't know about a given hash, the client can expand the query for it. | ||
Apollo Server caches that mapping. | ||
|
||
Needless to say your server needs to support this. |