apollo-server icon indicating copy to clipboard operation
apollo-server copied to clipboard

Remove deferSpec=20220824 from the response headers

Open jer-k opened this issue 1 year ago • 2 comments

Fixes https://github.com/apollographql/apollo-server/issues/7909

In the issue I noted

Is there any reason to add the deferSpec=20220824 to the response header? Without it Apollo Client behaves properly and the devtools are able to preview the response data.

Unfortunately no response on the issue but I couldn't find any information as to why deferSpec would need to be in the response headers. If there is a need for it then this PR can be closed.

By removing it the Preview pane in devtools is able to display the deferred data

Before: image

After: image.

Tests

I updated the existing tests as this isn't adding anything net new

jer-k avatar Aug 07 '24 19:08 jer-k