From 64508b419826f42dfb582434719a11aa897691c9 Mon Sep 17 00:00:00 2001 From: Ola Okelola Date: Tue, 2 Aug 2022 14:43:52 -0700 Subject: [PATCH] fix --- tsent/cmd/generateschema/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsent/cmd/generateschema/generate.go b/tsent/cmd/generateschema/generate.go index bd50a9b5f..95e95fef7 100644 --- a/tsent/cmd/generateschema/generate.go +++ b/tsent/cmd/generateschema/generate.go @@ -234,7 +234,7 @@ func FieldObjectCall(f *input.Field) string { appendBoolean(o, f.Unique, "unique") appendBoolean(o, f.Nullable, "nullable") appendBoolean(o, f.Index, "index") - appendBoolean(o, f.Private, "private") + appendBoolean(o, f.Private != nil, "private") appendBoolean(o, f.HideFromGraphQL, "hideFromGraphQL") appendBoolean(o, f.DefaultToViewerOnCreate, "defaultToViewerOnCreate")