P
Prisma•2mo 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•2mo 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•5w ago
Hey, yes i am
Nurul
Nurul•5w ago
Can you share an example on what type you are getting and what you are expecting it to be?
Want results from more Discord servers?
Add your server