You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
operation.setContext({
http: {
includeQuery: true,
includeExtensions: supportsPersistedQueries,
},
fetchOptions: {
// Since we're including the full query, which may be
// large, we should send it in the body of a POST request.
// See issue #7456.
method: 'POST',
},
});
if (setFetchOptions) {
operation.setContext({ fetchOptions: originalFetchOptions });
}
I created a pull request #7456 to fix the method of sending the full request
But now, the following lines overriding fetchOptions, return an empty object
apollo-client/src/link/persisted-queries/index.ts/: 197
Line 185
Line 197
Line 198
originalFetchOptions = {}
As a result, full request goes via GET
I don't know why lines 197-199 are needed. But on line 198 you need to consider the method override for full requests
The text was updated successfully, but these errors were encountered: