Gelo
08/07/2021, 3:21 AMDaniel Olavio Ferreira
08/07/2021, 2:16 PMDiego Feder
08/07/2021, 5:13 PM.findMany
and .count
are similar?..Diego Feder
08/07/2021, 5:15 PMdata = {
//stuff_from_skip_to_dateCreated_key
}
and pass
..data (using spread operator) into each .findMany
and .count
callsleonardodino
08/07/2021, 6:59 PMconst where = {/* that big object */} as const
$transaction([visit.findMany({where, select}), visit.count({where})])
Gelo
08/08/2021, 7:34 AM