Build Netlify lambda function + Apollo gateway together

Hey @peter-wd-1,
TL;DR if you just want the working site and repo :slight_smile:

The longer story
There are a couple different issues happening at once and the best resource I can point you to is this extensive conversation about different ways you can build functions (zip and ship, manually zip, netlify-lambda):

I’d really recommend reviewing that if you want to get this working with netlify-lambda. I believe the core of the issue is that your function dependencies are not being automatically bundled with the netlify-lambda build command; you will need to install the function dependencies, one command at a time or with a script.

Hope you find this helpful! Let us know if you have any other questions.

1 Like