Closed
Description
Issue Description
I'm setting my link like this:
const httpLink = new BatchHttpLink({
uri: apiUri,
batchMax: 5,
batchInterval: 20,
useGETForQueries: true,
fetchOptions: {
agent: new Agent({ keepAlive: true }),
},
})
I got no warning from TS or at runtime, so I just assumed my batched link would keep doing get requests as previously configured, but it only does post. I don't get why only do batched queries with post, it's not like there is a limitation, I simulated the same behavior with get (serializing the queries array so it can be used in a get request string) and my graphql server gave me the same response.
Link to Reproduction
.
Reproduction Steps
- Create the Apollo Link with BatchHttpLink constructor
- Set useGETForQueries to true
- Make any request to the graphql api, it will be sent always via post method