From b7d5241f1890074522e0ef1cfefdab24ae68c586 Mon Sep 17 00:00:00 2001 From: Finn <11148454+LazerJesus@users.noreply.github.com> Date: Sun, 3 Dec 2023 23:53:33 +0100 Subject: [PATCH] Edited docs of store.fetch method (#1233) --- site/src/routes/api/query/+page.svx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/routes/api/query/+page.svx b/site/src/routes/api/query/+page.svx index 386cae954..7493d0e4b 100644 --- a/site/src/routes/api/query/+page.svx +++ b/site/src/routes/api/query/+page.svx @@ -97,7 +97,7 @@ A query store holds an object with the following fields that accessed like `$sto ### Methods A query store has the following methods that invoked without the $, ie `store.fetch(...)`: - +- `fetch` expects `store.fetch({ variables: {/* variables */} });` - `fetch` is a function that can be used to load the most recent data from your API (subject to its [Cache Policy](/guides/caching-data)). If you want to force the request to always resolve against the API, set `policy: 'NetworkOnly'`. ## Automatic Loading