Prisma allows creating date fields with a string value or a Date instance. If a mix of Date instances and strings are used with Prismock, however, orderBy don't properly compare the two.
Repro steps:
create a schema with a date field
create some rows with Date instances
create some rows with (ISO formatted) date strings that are earlier than the dates in part 2
try a .findMany operation with orderBy
notice that rows from part 3 are incorrectly ordered after the rows from part 2
Prisma allows creating date fields with a string value or a
Date
instance. If a mix ofDate
instances and strings are used with Prismock, however,orderBy
don't properly compare the two.Repro steps:
Date
instances.findMany
operation withorderBy