PrismaP
Prisma2y ago
5 replies
gaurav1998

Field excluded when running prisma query to supabase

The following code:
    const user = await prisma.user.findFirst({ where: { email: email } });

    console.log("user:", user);

Produces the following in the terminal:
user: { id: 5, email: 'user@nextmail.com', name: 'asdfvc', example: 'asdf' }

Even though my users table contains a password field (see photo) in my supabase and it is in sync with my schema.

Any thoughts on why the prisma query won't select password (or updated_at or created_at for that matter)?
Screenshot_2024-06-02_at_8.46.06_PM.png
Was this page helpful?