prisma.findMany({
  where: { record: some.id }, // optional
  take: 1,
  orderBy: { createdAt: "desc" }, // update depending on if you need first or last item in the db
});