Middleware Context

Allow passing of context to middleware.

Project Toolchain Usage

To enable this optional feature, add the contextRemover element to your optionalFeatures array, then use the generated middleware or extension inside of your code.

If you are using the middleware, make sure that it's the last one in the chain.

Feature Effect

This feature modifies the generated Prisma Client to include this parameter to all operations:

index.d.ts
context?: {[key: string]: any}

Last updated