Skip to content

Add support for apollo-server-micro #270

Closed
@kvnwolf

Description

@kvnwolf

I initially posted this in graphql-hive/graphql-yoga#614 but since yoga seems to be superseded by santa, I will post it here.

Although server support and lambda support is currently great, I'd been having troubles trying to expose a graphql-yoga endpoint in next.js.

Since I am using Next9, I want to leverage the API Routes feature, which although is a serverless function, has a slightly different signature than lambda functions.

The good news is that those API routes support any micro compatible middleware out-of-the-box. And even better, there is already an apollo-server-micro implementation, which is really similar to using the apollo-server-lambda exposed in GraphQLServerLambda.

Are there any plans on making the micro integration soon? If not, I can help with a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope/serverRelated to the server component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions