PrismaP
Prisma3mo ago
14 replies
JeyJeyCodes

Prisma query

Hi Guys I am building a full-stack application using turbo-repo. Soo my backend is using serverless AWS and I have a shared database folder which I import from. When using the query system I had to set an env variable: PRISMA_QUERY_ENGINE_LIBRARY to tell pull the generated stuff from the right place. This has caused a lot of issues around the lambda sizes being massive! Soo I found the new way of using the query_compiler_bg.wasm. But I have the same issue where it is not pointing to the right generated folder as it in in a separate folder.

soo where it is trying to find it from here:

/Users/work/repos/project/services/employer/src/generated/prisma/query_compiler_bg.wasm

it is actually meant to find it from here:

/Users/work/repos/project/services/employer/node_modules/@relay/database/src/generated/prisma/query_compiler_bg.wasm.

I got this working for the library query engine because I just set the path:

/var/task/node_modules/@relay/database/src/generated/prisma/libquery_engine-rhel-openssl-1.0.x.so.node
Was this page helpful?