fix(client): Ensure empty array argument is not turned into object (#19414)
* fix(client): Ensure empty array argument is not turned into object
Most of this PR deals with ensuring that validation error for array item
is rendered correctly when using GraphQL protocol. For JSON protocol, it
also adds a fix to a crash during nested array error rendering.
* Add some comments
7 months ago by SevInf
chore: remove outdated comment
The wrapper function this comment refers isn't used anymore, we removed
it previously since there's no need for it in modern TS.