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
Hi development team,
I am building an example using apollo-link-rest, when I use mutation to edit data, I realize that the request body was empty although I did add headers with: "Content-Type": "application/json",
This is my actual code:
I'm not super familiar with the graphql higher order component & it's usage with compose() Have you verified if the request actually got sent with the correct headers?
Your sample code doesn't show how you configured the Apollo Client
You may need to use a responseTransformer to achieve that particular body @dongtanhuy
fbartho
changed the title
Empty request body from Mutation with PUT and POST method
[Feature Request]: Empty request body from Mutation with PUT and POST method
Jan 5, 2022
Hi development team,
I am building an example using
apollo-link-rest
, when I use mutation to edit data, I realize that the request body was empty although I did add headers with:"Content-Type": "application/json",
This is my actual code:
I read all issues on Github and cannot find the solution. Can you give me some ideas to fix it?
Thanks!
The text was updated successfully, but these errors were encountered: