Creating and including a related object returns trimmed numbers with relationJoins
#24414
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
domain/client
Issue in the "Client" domain: Prisma Client, Prisma Studio etc.
kind/bug
A reported bug.
topic: floating point types
Topic related to floating point types and precision loss
topic: relationJoins
Bug description
With
relationJoins
enabled, if you crate an object with another related object and include their values, the floats of the related object will be truncated:And this has nothing to do with the accuracy, since fetching the object directly doesn't cause this issue:
How to reproduce
Explained in https://github.com/TheMC47/prisma-bug-report:
For the test case included in the repo:
Expected behavior
They're the same
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: