From e8b565f664955489335b2f394057db3f4df6196e Mon Sep 17 00:00:00 2001 From: Dmitri Pisarev Date: Thu, 23 Sep 2021 17:26:34 +0300 Subject: [PATCH] Document `@Pal.omit` --- src/pages/generator/nexus.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/generator/nexus.md b/src/pages/generator/nexus.md index fdac16b..35b9c81 100644 --- a/src/pages/generator/nexus.md +++ b/src/pages/generator/nexus.md @@ -38,6 +38,8 @@ model User { id Int @id @default(autoincrement()) createdAt DateTime @default(now()) email String @unique + /// @Pal.omit This would hide the field from Pal.js output + password String? name String? role Role @default(USER) posts Post[] @@ -410,6 +412,8 @@ type options = { doNotUseFieldUpdateOperationsInput?: boolean; } ``` + +Note that you may also exclude generation of fields by adding `/// @Pal.omit` to field's documentation ### Install