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),