From 4fc56592ebad599aef499e6f72438a76062cc35d Mon Sep 17 00:00:00 2001 From: David Ackroyd <23301187+dackroyd@users.noreply.github.com> Date: Thu, 4 Apr 2024 10:05:17 +1100 Subject: [PATCH] Fix Missing Names Function Was missed from the previous commit, and resulting in failures due to its absence. --- ast/argument.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ast/argument.go b/ast/argument.go index dbaa2374..2aa1f5c4 100644 --- a/ast/argument.go +++ b/ast/argument.go @@ -43,3 +43,12 @@ func (a ArgumentsDefinition) Get(name string) *InputValueDefinition { } return nil } + +// Names returns a slice of ArgumentsDefinition names. +func (a ArgumentsDefinition) Names() []string { + names := make([]string, len(a)) + for i, f := range a { + names[i] = f.Name.Name + } + return names +}