Bshr Ramadan
10/06/2021, 5:09 PM.graphql
supergraph schema to use it in apollo gateway which is similar to this : https://www.apollographql.com/docs/federation/quickstart/#4-start-the-gateway
the problem is when deploy to lambda, it is not deploying the .graphql
file that I read it in gateway handler, and it throws error : no such file or directory, open 'schemas/gateway.graphql'"
do you suggest a way to do this?Frank
copyFiles
option to copy the file to ur Lambda package - https://docs.serverless-stack.com/constructs/Function#copyfiles
2. use the loader
option to import
the file instead of reading it - https://docs.serverless-stack.com/constructs/Function#loaderFrank
Bshr Ramadan
10/06/2021, 6:48 PM