Query daily, weekly, mothly data


hey guys good day, can you give me some idea how to query data from daily, weekly and monthly? thanks guys

// assuming you have declared "from" and "to" variables and their values are equal to the limits of the range you want to query:

const data = await prisma.items({
  where: {
    date_gte: from,
    date_lte: to


This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.