mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 18:21:40 -05:00
![]() Apollo Persisted Queries is a standard for sending queries as short hashes instead of full strings, designed to work well with GET requests. It is implemented by servers including the Apollo Engine Proxy, and by the apollo-link-persisted-query client. A common configuration is to set up persisted queries on production servers but not in development. It is still convenient to leave apollo-link-persisted-query always on, though. While apollo-link-persisted-query can detect that servers don't support PQs, it works better if the server actually says it doesn't support the PQ, instead of trying to process a request without a query and potentially printing a confusing stack trace. This commit makes apollo-server directly return PersistedQueryNotSupported instead of allowing confusing stack traces to occur. |
||
---|---|---|
.. | ||
index.ts |