Skip to content
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

Some missing points #9

Closed
mcg-web opened this issue Feb 4, 2018 · 2 comments
Closed

Some missing points #9

mcg-web opened this issue Feb 4, 2018 · 2 comments
Labels

Comments

@mcg-web
Copy link
Contributor

mcg-web commented Feb 4, 2018

Hi,
We are implementing a middleway to this php lib for some backward compatibility reasons we can't use php middleway lib... but It seems specifications don't explains:

  • how server deal with optional files? Can you provide an example of request payload and server behavior in this case?
  • how server answer in case of batch request?

Can you please help me to get all this?

@jaydenseric
Copy link
Owner

Sorry for the late response, I need to stop clearing notifications right after I wake up!

how server answer in case of batch request?

This is outside the domain of this spec, but the answer is exactly the same as a regular batched request: The response will be an array of GraphQL responses.

how server deal with optional files?

Not really sure what you mean. If there are no files in the operation to upload, then send a regular POST request instead of a multipart request. If there are two optional file arguments/variables and only one is populated, the genuinely null one will not have an entry in the map field and no file field will be appended for it.

@mcg-web
Copy link
Contributor Author

mcg-web commented Feb 12, 2018

Thanks , that's exactly what was missing me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants