profusion / sgqlc

Simple GraphQL Client
https://sgqlc.readthedocs.io/
ISC License
513 stars 85 forks source link

Support file uploads for mutations? #194

Open vavalomi opened 2 years ago

vavalomi commented 2 years ago

Although not part of the standard, several server implementations support file uploads via multipart forms fields. Although both urllib and requests can accept files={} parameters, sgqlc endpoint wrappers do not accept/pass additional parameters. It would be great to have the capability.

barbieri commented 2 years ago

@vavalomi nice request, I don't have much time to implement it atm, but if you do, please provide some tests as well (in this case it's not doctest, but regular tests using nose).

geekscrapy commented 2 years ago

I can't help with Dev unfortunately (out of my skillset), but just noting here that I'd really look for this feature too 👍