wmadden
PPrisma
•Created by deanStealth on 1/8/2025 in #help-and-questions
Prisma Promises not transferring context like Promises?
but I hope the source of Prisma Promise helps 🙂
13 replies
PPrisma
•Created by deanStealth on 1/8/2025 in #help-and-questions
Prisma Promises not transferring context like Promises?
I'm a bit confused about your question since your example doesn't appear to involve Prisma and I don't know what information you're referring to when you say "this.log.info("some log") spits out all that same information"
13 replies
PPrisma
•Created by deanStealth on 1/8/2025 in #help-and-questions
Prisma Promises not transferring context like Promises?
hey @deanStealth, the Prisma Promise is much less sophisticated than you're assuming. All it does is defer executing the query until you call
.then()
. You can read the implementation here https://github.com/prisma/prisma/blob/e6ef63ba0cde4eb838c88a8203321cd8428f53f4/packages/client/src/runtime/core/request/createPrismaPromise.ts13 replies