Skip to content

Commit

Permalink
add descriptions for node field
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbrown committed Jul 13, 2024
1 parent 8d75896 commit 5f54812
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
},
},
}
Expand All @@ -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),
Expand Down

0 comments on commit 5f54812

Please sign in to comment.