PLEASE PLEASE. you've got to help me for this. I c...
# orm-help
p
PLEASE PLEASE. you've got to help me for this. I can't find docs as well 😞 😞 Im using Mongodb and
Copy code
prisma.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...
a
✅ 1
n
Hey 👋 Are you storing timestamp in your
deletedAt
field? And if I understand correctly you want to fetch the agents which has
deletedAt
defined and not null, correct?
Let me know if I could clarify my question