diff --git a/apps/docs/content/docs/orm/prisma-client/type-safety/operating-against-partial-structures-of-model-types.mdx b/apps/docs/content/docs/orm/prisma-client/type-safety/operating-against-partial-structures-of-model-types.mdx index ad1fd1a47c..d22cf33b37 100644 --- a/apps/docs/content/docs/orm/prisma-client/type-safety/operating-against-partial-structures-of-model-types.mdx +++ b/apps/docs/content/docs/orm/prisma-client/type-safety/operating-against-partial-structures-of-model-types.mdx @@ -76,13 +76,9 @@ import { Prisma } from "@prisma/client"; // 1: Define a type that includes the relation to `Post` const userWithPosts = { include: { posts: true } } satisfies Prisma.UserDefaultArgs; - include: { posts: true }, -}); // 2: Define a type that only contains a subset of the scalar fields const userPersonalData = { select: { email: true, name: true } } satisfies Prisma.UserDefaultArgs; - select: { email: true, name: true }, -}); // 3: This type will include a user and all their posts type UserWithPosts = Prisma.UserGetPayload;