Should I use REST or GraphQL for file upload?

Should I use REST or GraphQL for file upload?


0

I have a GraphQL API, but I have doubts about whether to file upload in a graphql mutation or do it in a REST endpoint, I know that it can be done in both ways.

I have read that for file uploading the ideal is to have a REST endpoint instead of a mutation. Is there any reason and a good practice for this?

New contributor

PedroHernandez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


Load 6 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *