Skip to content

Commit

Permalink
Fix Missing Names Function
Browse files Browse the repository at this point in the history
Was missed from the previous commit, and resulting in failures due to its absence.
  • Loading branch information
dackroyd committed Apr 3, 2024
1 parent cd26a0e commit 2ef0555
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ast/argument.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@ func (a ArgumentsDefinition) Get(name string) *InputValueDefinition {
}
return nil
}

// Names returns a slice of FieldDefinition names.
func (a ArgumentsDefinition) Names() []string {
names := make([]string, len(a))
for i, f := range a {
names[i] = f.Name.Name
}
return names
}

0 comments on commit 2ef0555

Please sign in to comment.