graphql-mesh icon indicating copy to clipboard operation
graphql-mesh copied to clipboard

Get headers from response with SDK

Open Achilles4400 opened this issue 6 years ago • 2 comments

I'm using wordpress API and I need to access headers to get pagination variables. Is it possible to add an option in sdk call to get full response of http request ?

Achilles4400 avatar Jun 01 '20 08:06 Achilles4400

Is there a workaround to get response's headers in SDK ?

abathellier avatar Jun 15 '20 08:06 abathellier

Available in the latest version! You can use the new includeHttpDetails option to get the details of the HTTP response including headers, statusCode etc under httpDetails field.

ardatan avatar Aug 11 '20 19:08 ardatan