P
Prisma•15h 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?
1 Reply
Nurul
Nurul•2h 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';
Want results from more Discord servers?
Add your server