Skip to content

Commit

Permalink
fix: resolve array item is variable not support.
Browse files Browse the repository at this point in the history
  • Loading branch information
xufeixiang committed Aug 15, 2024
1 parent 24c9a42 commit 7ef8fd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pkg/engine/build/operations_graphql_document.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,11 @@ func (i *QueryDocumentItem) checkArgumentChildValueList(argName string, argValue
i.reportError(nullableRequiredErrorFormat, fieldName, utils.JoinStringWithDot(argPath...))
return
}
if argDefType.Elem != nil && argValue.Kind == ast.ListValue {
for index, child := range argValue.Children {
i.checkArgumentChildValueList(fmt.Sprintf(`[%d]`, index), child.Value, argDefDescription, argDefType.Elem, fieldIsNullValue, argPath...)
}
}
return
}

Expand Down
2 changes: 1 addition & 1 deletion wundergraphGitSubmodule

0 comments on commit 7ef8fd2

Please sign in to comment.