I have a simple Graph QL API which I want to upload to AWS Lambda, however, before getting anywhere near deployment…
However, I am struggling to even run the simple local query of:
serverless invoke local -f graphql -p query.json
I get the following error:
It seems that Serverless is unable to recognise imports from subdirectories in Node: apolloServer.js relies on imports from subdirectories such as utils, api, graphql etc…
It would be almost impossible to have all the code in the single apolloServer.js file.
Is there a way to make Serverless recognise imports from subdirectories in Node ?