You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works but obviously when there is a cold start the lambda is not initially ready as startApolloServer has not completed.
I need to await startApolloServer() during module initialisation. Everything I have tried has not achieved the desired result. What is the recommended best practice in this scenario?
Thanks,
Mark
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to correctly boostrap the lambda so that it waits until the server is ready. I am using
apollo-server-express
to host a GraphQL endpoint.With an
app.ts
similar to:This works but obviously when there is a cold start the lambda is not initially ready as
startApolloServer
has not completed.I need to
await startApolloServer()
during module initialisation. Everything I have tried has not achieved the desired result. What is the recommended best practice in this scenario?Thanks,
Mark
The text was updated successfully, but these errors were encountered: