Hello,
I want to upload file in graphql API where upload file using mutation same as https://www.apollographql.com/docs/apollo-server/data/file-uploads/ given example.
In that it’s possible for upload file without express?
Hello,
I want to upload file in graphql API where upload file using mutation same as https://www.apollographql.com/docs/apollo-server/data/file-uploads/ given example.
In that it’s possible for upload file without express?
Yes it is possible - see this note from the https://www.apollographql.com/docs/apollo-server/data/file-uploads/ docs:
New in Apollo Server 3: Apollo Server 3 does not contain a built-in integration with
graphql-uploadlike in Apollo Server 2. Instead, the instructions below show how to integrate it yourself. You cannot do this with the “batteries-included”apollo-serverlibrary; you must use a web framework integration such asapollo-server-expressinstead. To implement similar functionality with another Node.js HTTP framework (e.g., Koa), see thegraphql-uploaddocumentation for more information. Some integrations might need to usegraphql-upload'sprocessRequestdirectly.
Referring to the graphql-upload documentation should help.