Harun
12/03/2020, 7:45 AMconst date = new Date();
const numberOfDays = 30;
const month = date.setDate(date.getDate() - numberOfDays);
const items = await prisma.items.findMany({ where: { createdAt: { gt: month } } });
But i get an error that says: Argument createdAt: Got invalid value on prisma.aggregateProduct. Provided Json, expected DateTimeFilter or DateTime.
How can i query by datetime?