Query daily, weekly, mothly data


#1

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


#2
// 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
  } 
})

#3

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