Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add operationName to GET queries (#798)

* Add operationName to GET queries

* changeset

authored by

Jakub Riedl and committed by
GitHub
fbebee72 ec9b8cf7

+9
+5
.changeset/weak-rats-perform.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Add operationName to GET queries
+4
packages/core/src/internal/fetchOptions.ts
··· 44 44 if (!useGETMethod || !body) return url; 45 45 46 46 const search: string[] = []; 47 + if (body.operationName) { 48 + search.push('operationName=' + encodeURIComponent(body.operationName)); 49 + } 50 + 47 51 if (body.query) { 48 52 search.push('query=' + encodeURIComponent(body.query)); 49 53 }