Tag: typegraphql-prisma
-
How to access request in prisma middleware
0 I am using typegraphql-prisma and all the resolver are autogenerated. I need to automatically set the createdBy and updatedBy fields in Prisma models based on the authenticated user’s ID, which retrieve from a Firebase token in Express middleware. //auth.middleware.ts import { Response, NextFunction } from "express"; import * as admin from "firebase-admin"; import {…