From f5a1bd77d1a8e2868ea4201a96700ebf1dacf0fb Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 27 Jul 2021 21:24:36 +0200 Subject: [PATCH] file size non null --- internal/graphqlTypes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/graphqlTypes.go b/internal/graphqlTypes.go index f089134..e41fd2c 100644 --- a/internal/graphqlTypes.go +++ b/internal/graphqlTypes.go @@ -55,7 +55,7 @@ func graphqlTypes() { }, }, "size": &graphql.Field{ - Type: graphql.Int, + Type: graphql.NewNonNull(graphql.Int), Resolve: func(p graphql.ResolveParams) (interface{}, error) { file, err := loadFile(p) if err != nil {