title: Nest js + prisma project, error in findUnique method in services
body: <p>I have question what I am doing wrong, when use prisma with nest.
  I am getting this error</p>
  <pre><code>src/modules/auth/auth.service.ts:28:63 - error TS2322: Type 'UserWhereUniqueInput' is not assignable to type 'string'.
  28     const user = await this.prisma.user.findUnique({ where: { email } });
                                                                   ~~~~~
  
    node_modules/.prisma/client/index.d.ts:1521:5
      1521     email?: string
               ~~~~~
      The expected type comes from property 'email' which is declared here on type 'UserWhereUniqueInput'
  [11:50:56 PM] Found 1 error. Watching for file changes
  </code></pre>
  <p><a href="https://i.stack.imgur.com/nfv98.png" rel="nofollow noreferrer">prisma error</a></p>
  <p>in auth.service.ts</p>
  <pre><code>...
  @Injectable()
  export class AuthService {
    constructor(private jwtService: JwtService, private prisma: PrismaService) {}
  
    async signIn({
      email,
      password,
    }: {
      email: Prisma.UserWhereUniqueInput;
      password: string;
    }) {
      const user = await this.prisma.user.findUnique({ where: { email } });
  ...
  </code></pre>
  <p>my schema of user is next</p>
  <pre><code>model User {
   id         Int      @id @default(autoincrement())
   email      String   @unique
   password   String
   lastName   String?
   firstName  String?
   roles      String[]
  }
  </code></pre>
  <p>controller which is calling service is</p>
  <pre><code>...
  @Post('sign-in')
    signIn(@Body() signinAuthDto: any) {
      return this.authService.signIn(signinAuthDto);
    }
  </code></pre>
  <p>I have added here any instead of
  SigninAuthDto but it still fails</p>
  <pre><code>export class SigninAuthDto {
    email: string;
    password: string;
  }
  </code></pre>