Skip to content

Commit 812bb11

Browse files
committed
Add note
1 parent 6011f13 commit 812bb11

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/link/persisted-queries/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ export declare namespace PersistedQueryLink {
101101
/**
102102
* Whether to use HTTP GET for hashed queries (excluding mutations).
103103
*
104-
* When enabled, queries sent with just a hash will use GET requests.
105-
* This can improve caching but is not compatible with batching.
106-
*
107-
* Note: Mutations always use POST regardless of this setting.
104+
* > [!NOTE]
105+
* > If you want to use `GET` for non-mutation queries whether or not they
106+
* > are hashed, pass `useGETForQueries: true` option to `HttpLink`
107+
* > instead. If you want to use GET for all requests, pass `fetchOptions: {method: 'GET'}`
108+
* > to `HttpLink`.
108109
*
109110
* @defaultValue `false`
110111
*/

0 commit comments

Comments
 (0)