Unable to load GraphQL Playground / endpoints in /pages/api with a lambda using apollo-server-micro
Steps to reproduce the behavior, please provide code snippets or a repository:
works!works!Go to /api/apollo-server-micro - able to load schema, make query, mutation

Add any other context about the problem here.
Each file index file in pages directory should export react component, you're trying to have a graphql server there. I think what you're looking for is how to run a custom server and add grapqhl there. Take a look at docs or express example
Each file index file in pages directory should export react component, you're trying to have a graphql server there. I think what you're looking for is how to run a custom server and add grapqhl there. Take a look at docs or express example
In the latest Next 9.0.0, they have enabled support for /pages/api api routes to build api server using lambdas. Please see their example here: https://github.com/zeit/next.js/tree/canary/examples/api-routes/pages
Just tried too, it's not working, I checked the network tab and this query IntrospectionQuery is hanging.
This was the missing piece!
https://gist.github.com/mfellner/2119db3584023092d70118a8dabd146e#file-graphql-ts-L19-L23
Most helpful comment
This was the missing piece!
https://gist.github.com/mfellner/2119db3584023092d70118a8dabd146e#file-graphql-ts-L19-L23