Automatic Persisted Queries
You can use this feature to double the 8kb limit on the query size to 16kb if you are a customer on our Premium plan and above, plus to cache the query in Contentful to decrease the payload delivered through the network.
- First, you have to send the query and a
sha256Hashvalue of that query:
- Then, you can only send the hash to execute the cached query:
Note: If you sent a wrong hash you will get a PersistedQueryMismatch error. If you sent a hash without caching the query first, you will get a PersistedQueryNotFound error.