From 926701125dbe475be87c603d82cf6ba24e44c5b3 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 10 Aug 2021 11:22:10 +0200 Subject: [PATCH] schema non null --- internal/schema.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/schema.go b/internal/schema.go index 0c6549f..f7128fe 100644 --- a/internal/schema.go +++ b/internal/schema.go @@ -12,7 +12,7 @@ func graphqlSchema() (graphql.Schema, error) { queryFields := graphql.Fields{ "files": &graphql.Field{ - Type: graphql.NewNonNull(graphql.NewList(graphqlFileType)), + Type: graphql.NewNonNull(graphql.NewList(graphql.NewNonNull(graphqlFileType))), Args: graphql.FieldConfigArgument{ "path": &graphql.ArgumentConfig{ Type: graphql.NewNonNull(graphql.String), @@ -30,7 +30,7 @@ func graphqlSchema() (graphql.Schema, error) { }, }, "directorys": &graphql.Field{ - Type: graphql.NewNonNull(graphql.NewList(graphqlDirType)), + Type: graphql.NewNonNull(graphql.NewList(graphql.NewNonNull(graphqlDirType))), Args: graphql.FieldConfigArgument{ "path": &graphql.ArgumentConfig{ Type: graphql.NewNonNull(graphql.String),