P
Prisma•5mo ago
Tommy

Prisma return model type

Hey! I might be missing something, but how can i actually use the Model type from the prisma client? Prisma seems to be returning a full on object instead of the prisma model type, theres any type utility or something around this?
3 Replies
Nurul
Nurul•5mo ago
Hey @Tommy 👋 How are you using the Model type? Are you importing it like this, from the @prisma/client import?
import { Post } from '@prisma/client';
import { Post } from '@prisma/client';
Tommy
TommyOP•5mo ago
Hey, yes i am
Nurul
Nurul•5mo ago
Can you share an example on what type you are getting and what you are expecting it to be?

Did you find this page helpful?