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

how about graphql-upload #1

Open
tsvetann opened this issue Mar 18, 2022 · 1 comment
Open

how about graphql-upload #1

tsvetann opened this issue Mar 18, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@tsvetann
Copy link

Hi Thanks for this example. I would be curious to see if you could add upload functionality to the apollo-server-express implementation for nextjs 12.

Thx

@apuyou
Copy link
Owner

apuyou commented Mar 18, 2022

Hi, thanks for your feedback.

It doesn't look like upload is supported with apollo-server-lambda, on which this package is based. I'm not sure how this could be added in a generic manner (without adding graphql-upload as a dependency for all users of this package).

However, based on what I've seen on the graphql-upload documentation, you could write your own ApolloServer that would call the graphql-upload middleware. This is similar to what this package does with the middleware provided by apollo-server-express.

@apuyou apuyou added the enhancement New feature or request label Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants