zak.singh
07/28/2018, 10:41 PMdivyendu
07/29/2018, 3:54 AMzak.singh
07/29/2018, 3:58 AMzak.singh
07/29/2018, 4:00 AMdivyendu
07/29/2018, 4:01 AMzak.singh
07/29/2018, 4:07 AMprisma.ts
file from my graphql server (which contains my prisma directory as in the examples) into my separate serverless folder. I did this so that I could call the Prisma constructor exposed by prisma.ts. I'm under the impression that prisma.ts
is only used in the typescript compilation stage and should have no effect on the lambda's execution once it is built and deployed. Nonetheless I'm getting a cannot find module: graphql
error, while my code never directly imports graphql. Nevertheless I have graphql installed as a dependency, so it shouldnt be an issue in the first placezak.singh
07/29/2018, 4:10 AMimport { Prisma } from "./prisma"
the error goes away. I tried using the javascript version of the prisma constructor by passing in the generated schema file as a string directly, but it resulted in the same errorzak.singh
07/29/2018, 4:11 AMzak.singh
07/29/2018, 4:51 AMgraphql
not only as a dependency but as a resolutiondivyendu
07/29/2018, 9:43 AM