Crypto Prisma
    Preparing search index...

    Type Alias MiddlewareParams

    Prisma middleware callback parameter shape.

    const params: MiddlewareParams = {
    action: "findMany",
    model: "User",
    args: { where: { id: 1 } },
    dataPath: [],
    runInTransaction: false,
    };
    type MiddlewareParams = {
        model?: string;
        action: string;
        args: Record<string, unknown>;
        dataPath: string[];
        runInTransaction: boolean;
    }
    Index
    model?: string

    The Prisma model name (e.g. "User").

    action: string

    The Prisma action (e.g. "findMany", "create").

    args: Record<string, unknown>

    The arguments passed to the Prisma operation.

    dataPath: string[]

    Path to nested data in the args.

    runInTransaction: boolean

    Whether the operation runs inside a transaction.