From 5f5481224676ab7afe2d6fab46440510b97bfc50 Mon Sep 17 00:00:00 2001 From: ccbrown Date: Fri, 12 Jul 2024 22:19:23 -0400 Subject: [PATCH] add descriptions for node field --- config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index b066d28..00f7e21 100644 --- a/config.go +++ b/config.go @@ -71,7 +71,8 @@ func (cfg *Config) init() { Name: "Node", Fields: map[string]*graphql.FieldDefinition{ "id": { - Type: graphql.NewNonNullType(graphql.IDType), + Type: graphql.NewNonNullType(graphql.IDType), + Description: "The global id of the node.", }, }, } @@ -83,7 +84,8 @@ func (cfg *Config) init() { Name: "Query", Fields: map[string]*graphql.FieldDefinition{ "node": { - Type: cfg.nodeInterface, + Type: cfg.nodeInterface, + Description: "Gets a node by its global id.", Arguments: map[string]*graphql.InputValueDefinition{ "id": { Type: graphql.NewNonNullType(graphql.IDType),