Minor Changes
-
064894c: Make Automatic Persisted Queries (APQ) opt-in on the server fetcher
(initServerFetcher/initStrictServerFetcher) via a newapqoption,
defaulting tofalse— matching the client fetcher.When APQ is off (the default), operations without a
documentIdare sent as a
full-query POST directly, skipping the APQ GET round-trip and the
PersistedQueryNotFoundfallback. Operations that resolve to adocumentId
(persisted/trusted documents) are always sent as a cacheable GET, regardless of
this flag.This makes the server fetcher work against gateways that do not implement APQ
(e.g. local development without a persisted-document store).Based on the opt-in design from #47 by @pvaneveld.