Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add file upload support #1

Closed
schickling opened this issue Nov 15, 2017 · 2 comments
Closed

Add file upload support #1

schickling opened this issue Nov 15, 2017 · 2 comments

Comments

@schickling
Copy link
Contributor

https://github.com/jaydenseric/apollo-upload-server

fabien0102 pushed a commit to fabien0102/graphql-yoga that referenced this issue Feb 14, 2018
@Urigo
Copy link
Collaborator

Urigo commented Mar 29, 2022

Hey, @Urigo from The Guild here!

You might know us from projects such as graphql-code-generator, envelop or graphql-tools.

For a long time we thought that the Javascript ecosystem is still missing a lightweight cross-platform, but still highly customizable GraphQL Server.

In the past the awesome Prisma team took on that great challenge and now we are happy to announce that we are continuing them and just released GraphQL Yoga 2.0 - Build fast, extensible, and batteries-included (Subscriptions, Serverless, and...... File uploads support) GraphQL APIs in Node.js 🚀

We have been working a long time on version 2.0 and have been using it in our clients projects for a few months now and shared a couple of alpha cycles here.
Thank you all for your feedback and suggestions, you made this release possible!

Please try Yoga out again, give us feedback and help us spread the word on the new release!

@524c
Copy link

524c commented Apr 25, 2022

Hi guys, congratulations on v2!

taking this code as an reference:
readTextFile: async (_, { file }: { file: File }) => {
try{
const textContent = file.text()
console.log(textContent)
return textContent
}
catch(e){
throw(new GraphQLYogaError(e))
}
},

Could you please send me an example of how to read a stream/blog other than text (an image, for example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants