apollo-server-integrations / apollo-server-integration-aws-lambda

An integration to use AWS Lambda as a hosting service with Apollo Server
MIT License
46 stars 9 forks source link

Context not showing and invalid types #170

Open cbs-l opened 4 months ago

cbs-l commented 4 months ago

When trying to use the documentation example for passing in a context I am seeing that a type error is being thrown:

S2554: Expected 0 arguments, but got 1

From what I can see the method call is:

export const createAPIGatewayProxyEventV2RequestHandler = <
  Event extends APIGatewayProxyEventV2 = APIGatewayProxyEventV2,
>() => {

So looks as if it does not allow a context value? This also means that when trying to use the context value in a resolver that it is not there.

image