You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: