Replies: 1 comment
-
Basically people were confusing semantics of Micro they're slightly different than API routes, and thought Next.js used Micro as they were both created by ZEIT. However API routes do not use Micro. apollo-server-micro probably works fine as it doesn't do anything special with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the api-routes-graphql example,
apollo-server-micro
is used. I have also implemented this and it works perfectly fine as far as I can tell.However, recently the use of micro middlewares was discouraged in favor of using Connect/Express middlewares, which adds the need to write some boilerplate code to promisify express-style middleware.
Now, I'm wondering if in above's example
apollo-server-express
should be used or if there is a better solution?Beta Was this translation helpful? Give feedback.
All reactions