Hello, from Prisma 1 it came with types built in ...
# orm-help
d
Hello, from Prisma 1 it came with types built in like for example, it would generate types for a resetTokenExpiry field from the schema and show different types related like if it’s greater or equal to. But in Prisma 2 , I don’t see anything like tht. I’m trying to create a reset password function and having trouble getting the resetTokenExpiry . I did save it in my user object.
Copy code
Const {user} = ctx.Prisma.user.findMany({
 where:{
  resetToken: args.resetToken,
  resetTokenExpiry:???
 }
})
Is there another way to check for resetTokenExpiry? Thanks 😊
r
@Donte 👋 Prisma 2 generates types and you can use
ctrl+space
n VSCode to check the suggestions. As you’re using GraphQL, have a look at this doc to enable Prisma autocomplete for your resolvers.
❤️ 1