Does Pioneer support GraphQL file upload? #103
-
Does Pioneer support GraphQL File Upload? Why or why not? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Pioneer does not have built-in support for GraphQL File Upload. Pioneer took many similar approaches and even some intentional design decisions to In addition, this blog post somewhat explained the flaws in having file upload to be as part of GraphQL server and other better alternatives for doing file uploads with GraphQL. In short, it is suggested that we "Separate the GraphQL Layer from the Service Layer". |
Beta Was this translation helpful? Give feedback.
Pioneer does not have built-in support for GraphQL File Upload.
Pioneer took many similar approaches and even some intentional design decisions to
@apollo/server
. GraphQL file upload isn't part of@apollo/server
sincev3
due to some security concerns allowingmultipart/form-data
particularly CSRF Attacks.In addition, this blog post somewhat explained the flaws in having file upload to be as part of GraphQL server and other better alternatives for doing file uploads with GraphQL.
In short, it is suggested that we "Separate the GraphQL Layer from the Service Layer".