Prisma.getExtensionContext(this) returning array of functions? (Not the model context) #24178
Unanswered
outofthisworld
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @outofthisworld 👋 Thank you for raising this question. The |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I'm creating a plugin, and I was under the impression that when calling
Prisma.getExtensionContext(this)
within a query extension (see below), that I would get a reference to the model which is being acted upon. However, I seem to be getting an array of functions including one named$alloperations
.I do have a few other plugins that run before this one, but not sure how this effects things? The docs aren't extensive in this area so would anyone be able to help me out on what is happening?
How to reproduce (optional)
Expected behavior (optional)
No response
Information about Prisma Schema, Client Queries and Environment (optional)
// Add your schema.prisma
// Add any relevant Prisma Client queries here
OS:
Database:
Node.js version:
Run
prisma -v
to see your Prisma version and paste itBeta Was this translation helpful? Give feedback.
All reactions