it tell me everytime it cannot read the user caus...
# prisma-client
t
it tell me everytime it cannot read the user cause of undefined
h
Did you set the PrismaService class as Provider in your module & inject it in your Service class ?
Also, I don’t know if this could be linked to the issue you encounter, but I don’t have exactly the same PrismaService class implementation. Here’s mine if it could help:
Copy code
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Injectable, OnModuleInit, OnModuleDestroy } from '@nestjs/common';
import { PrismaClient } from '@prisma/client';


@Injectable()
export class PrismaService extends PrismaClient
  implements OnModuleInit, OnModuleDestroy {
  async onModuleInit(): Promise<any> {
    return await this.$connect();
  }

  async onModuleDestroy(): Promise<any> {
    return await this.$disconnect();
  }
}
I use Prisma 2.27.0