resputin / yoga-serverless-mongo

11 stars 4 forks source link

TypeError: GraphQLServerLambda is not a constructor #1

Open nylon22 opened 2 years ago

nylon22 commented 2 years ago

I believe this project was built on an older version of graphql-yoga as GraphQLServerLambda is no longer an export of the graphql-yoga package. I get the following error:

TypeError: GraphQLServerLambda is not a constructor

starting this project on this line:

https://github.com/resputin/yoga-serverless-mongo/blob/41d68b35402072256b9e8da7732fd4e7b7a3d371/handler.js#L22

I don't see an equivalent/renamed export here: https://github.com/dotansimha/graphql-yoga/blob/master/packages/graphql-yoga/src/index.ts Any ideas?

nylon22 commented 2 years ago

Side note: I see this as an alternative in graphql-yoga docs: https://github.com/dotansimha/graphql-yoga/blob/master/website/docs/integrations/integration-with-aws-lambda.mdx