Unreleased
0.1.0
First release.
AbsintheAPQ.DocumentProvider, anAbsinthe.Plugdocument provider for Apollo Automatic Persisted Queries (persistedQueryversion 1), with the:cache,:max_query_bytesand:enabledoptions. It reads the extension from JSONPOSTbodies and from theextensionsparameter ofGETrequests.- Answers
PersistedQueryNotFound(PERSISTED_QUERY_NOT_FOUND) for an unknown hash,PersistedQueryNotSupported(PERSISTED_QUERY_NOT_SUPPORTED) withenabled: false, and errors with the codesPERSISTED_QUERY_HASH_MISMATCH,PERSISTED_QUERY_UNSUPPORTED_VERSIONandPERSISTED_QUERY_INVALID_HASH. - Stores a registered query only after it passes validation, and runs a stored query
only if it still hashes to its key. Cache errors answer
PersistedQueryNotFound. AbsintheAPQ.Cache, the behaviour for stores, andAbsintheAPQ.Cache.ETS, a bounded in-memory store with first-in, first-out eviction.AbsintheAPQ.before_send/2, anAbsinthe.Plughook that gives APQ errors status 400 where Apollo Server does, andcache-control: private, no-cache, must-revalidate.AbsintheAPQ.hash/1.- Telemetry events under
[:absinthe_apq, ...]. docs/PROTOCOL.md: the protocol rules the library follows, with their sources.