I have a bug with Prisma. I'm getting: ```Uncaugh...
# orm-help
p
I have a bug with Prisma. I'm getting:
Copy code
Uncaught (in promise) Error:
Invalid `prisma.groupChatChannelGroup.findMany()` invocation:

  Value out of range for the type. The column `lastRead` contained an invalid datetime value with either day or month set to zero.
But the column doesn't exist in the table. I check out index.d.ts and I find this:
Copy code
export type GroupChatChannelGroupByOutputType = {
    id: Buffer
    ...
    lastRead: Date
    ...
    _count: GroupChatChannelCountAggregateOutputType | null
    _avg: GroupChatChannelAvgAggregateOutputType | null
    _sum: GroupChatChannelSumAggregateOutputType | null
    _min: GroupChatChannelMinAggregateOutputType | null
    _max: GroupChatChannelMaxAggregateOutputType | null
  }
lastRead: Date shouldn't exist. How can I debug where this gets made? Thanks
r
@Paul 👋 Do you have Prisma output the client in a different location?
I would like to reproduce this as to why an extra field is generated.
p
Hey Ryan. I don't understand the first question. I have 3 code bases that rely on prisma. The primary one I do all the changes on and the other 2, I do prisma generate once the schema is copied over.
r
Is the schema you’re running
prisma generate
on have the field? If not, then I would like to reproduce this.
p
Actually it's fine. My mistake, I was interpreting the error message incorrectly. The current flow with prisma and operating 3 different code bases leads to some issues and I just got caught out.
👍 1