Fix for parse body when sending files with multipart #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recently I tried to send files with multipart and came across the issue where graphql told me that I'm sending an empty query.
I am using apollo-upload-client to send files and I saw that it's indeed sends the query with all necessary parameters, but graph couldn't parse it correctly.
The reason is that this client send the query in the key 'operations' where value is json.
I don't know if they changed it recently, but since it's official client for uploading files with graphql, I think this should be fixed.
I would like to write a tests for it as well, but I think they are kinda broken, at least I couldn't make them run.
Hope to hear from you, thanks for a great library.