api-client icon indicating copy to clipboard operation
api-client copied to clipboard

Add file upload support

Open sergiodxa opened this issue 1 year ago • 0 comments

It would be great to be able to upload files to the API directly, probably something like this:

await client.upload("POST /files", {
  variables: { body: file }
});

And use FormData for the request body.

sergiodxa avatar Apr 29 '23 04:04 sergiodxa