Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

prisma decimal

import { PrismaClient, Prisma } from '@prisma/client'

const newTypes = await prisma.sample.create({
  data: {
    cost: new Prisma.Decimal(24.454545),
  },
})
Source by www.prisma.io #
 
PREVIOUS NEXT
Tagged: #prisma #decimal
ADD COMMENT
Topic
Name
2+8 =