We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helper schema for Decimal fields has to be modified because decimal data loaded from db by prisma are not instance of Decimal but Prisma.Decimal. Find more information here: https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields#working-with-decimal
But i think it is not a good idea to import the Prisma client library because this make the zod schemas not usable for frontend projects.
You could check by using Decimal.isDecimal(value). Seem to return true when it is instance of Decimal as well when it is instance of Prisma.Decimal.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Helper schema for Decimal fields has to be modified because decimal data loaded from db by prisma are not instance of Decimal but Prisma.Decimal. Find more information here: https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields#working-with-decimal
But i think it is not a good idea to import the Prisma client library because this make the zod schemas not usable for frontend projects.
You could check by using Decimal.isDecimal(value). Seem to return true when it is instance of Decimal as well when it is instance of Prisma.Decimal.
The text was updated successfully, but these errors were encountered: