Demo with Nexus, Prisma and Serverless in AWS Lambda. To help to solve the issue with the Nexus Serverless described here: graphql-nexus/nexus#782
yarn build
yarn start
- go to http://localhost:4000/ - At this point all schema was loaded.
- exit
yarn serverless offline
- go to http://localhost:3000/test/playground
- change GraphQL url to http://localhost:3000/test/graphql
- no schema was loaded and in the console log the message is presented
- compare
.nexus/build/index.js
to.nexus/build/api/app.js
, the schema requires are missing
.
.
.
263 ▲ nexus:schema Your GraphQL schema is empty. This is normal if you have not defined any GraphQL types yet. If you did however, check that your files are contained in the same directory specified in the `rootDir` property of your tsconfig.json file.
.
.
.