Skip to content

Async/await lambdas #168

Description

@olliebatch

At the minute the output of startServerAndCreateLambdaHandler with the below returns a handler that expects a callback.

const handler = startServerAndCreateLambdaHandler(
    server,
    handlers.createAPIGatewayProxyEventV2RequestHandler(),
  );

The graphql handler has a third callback property.
Callback's are not recommended by aws any more although still supported but other packages have moved away from general handling of them. E.G Middy.

It would be ideal to not require a callback property on the graphql handler.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions