Hello! I am learning Prisma now. Using it inside N...
# prisma-client
v
Hello! I am learning Prisma now. Using it inside Nest.js framework. I want to use PostGIS, but as I see if I use
Unsupported
in schema then it is not possible to use
create
method. So I am using
$queryRaw
. But I can't understand what should I do with
cuid
,
createdAt
,
updatedAt
. I should install cuid lib and generate cuid manually or it can be done somehow inside?
1
n
I should install cuid lib and generate cuid manually or it can be done somehow inside?
That’s probably the best approach indeed 👍
but as I see if I use
Unsupported
in schema then it is not possible to use
create
method
Not sure what exactly your schema looks like, but if the
Unsupported
columns are optional you could
create
a new record with Prisma Client where these values aren’t set and then send a raw query to update the record immediately afterwards. Does this help? 🙂