-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] allow post with empty body #217
Comments
We noticed in the beginning of apollo-link-rest that because it's a bit complicated to configure the body payload, people often accidentally sent bodies with empty payloads. Do you have any advice, @gunzip, on how we could change this library to better support this feature, while still being safe for newbies? Maybe a magic value? or a new attribute on |
something like
|
Oh! That sounds like a great way to do it! Do you think it’s good enough? If so, we could document this as a recipe? |
Well, if I can do this without a custom serializer (ie. |
If somebody wants to implement this, we can take a look. |
Duplicates #198, closing. |
Expected Behavior
Mutations (PUT, POST) with empty body should be sent to the rest endpoint
Actual Behavior
Actually the client refuses to POST a request with an empty body
The text was updated successfully, but these errors were encountered: