prisma chobo
06/13/2022, 6:39 PMprisma.agent.findMany({
where: {
teamId: id,
deletedAt: null (undefined)
},
});
my schema is like so
model Agent {
id String @id @default(auto()) @map("_id") @db.ObjectId
teamId String
deletedAt Int?
}
This always empty array whether deletedAt is set or deletedAt is null or undefined...
aNurul
06/16/2022, 1:18 PMdeletedAt
field?
And if I understand correctly you want to fetch the agents which has deletedAt
defined and not null, correct?Nurul
06/21/2022, 1:18 PM