Currently Prisma's BigInt is not parsed. For instance if we extend the Post model with likes:
model Post {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
title String
content String?
published Boolean @default(false)
viewCount Int @default(0)
author User? @relation(fields: [authorId], references: [id])
authorId Int?
likes BigInt
}
Description
Currently Prisma's
BigInt
is not parsed. For instance if we extend thePost
model with likes:One of the results is:
With the proposed fix, the schema now includes
likes
:To test the fix, simply run
npm run gen-example
and inspect the fileprisma/generated/schemas/objects/PostCreateInput.schema.ts
.