Hello everyone, I would like to recover some data ...
# orm-help
s
Hello everyone, I would like to recover some data with today's date please but it is not possible I have this:
Copy code
const today = new Date();
    const date =
      today.getFullYear() +
      '-' +
      (today.getMonth() + 1) +
      '-' +
      today.getDate();

    console.log('DATEEE', date);
    const data = await this.prisma.ticket.findMany({
      where: {
        createdAt: date,
      },
    });
    console.log(data);
m
Try like this:
Copy code
const data = await this.prisma.ticket.findMany({
      where: {
        createdAt:{ gte: new Date(date)},
      },
    });
s
Thank's u !