Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
4 replies
Meyer

Prisma find many undefined

Hello,

In my other projet when i do prisma.resource.findMany({select: ...}) the type is {id: string, createdAt: Date}[] but in a new project ( created just now with T3 ) when i do the same thing i got {id: string | undefined, createdAt: Date | undefined}[]
Solution
Hello,

In my other projet when i do prisma.resource.findMany({select: ...}) the type is {id: string, createdAt: Date}[] but in a new project ( created just now with T3 ) when i do the same thing i got {id: string | undefined, createdAt: Date | undefined}[]
Was this page helpful?