You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Field values do not get set from an mutation's input argument when the field has an alias and the input argument is a list of input objects.
This appears to be in a similar vein to bugs #850 and #1358, but this behavior remains despite both those bugs being fixed. As far as I have observed, field aliases work if the mutation argument is a single value (not a list) - I have only observed this problem affecting arguments that are a list.
Description
Field values do not get set from an mutation's input argument when the field has an alias and the input argument is a list of input objects.
This appears to be in a similar vein to bugs #850 and #1358, but this behavior remains despite both those bugs being fixed. As far as I have observed, field aliases work if the mutation argument is a single value (not a list) - I have only observed this problem affecting arguments that are a list.
Steps to reproduce
See unit test at PR #1881.
Configure a field with an alias in
MyEntityInputType
:Configure a mutation like:
Execute a mutation query like the following:
Expected result
The
es[0].BField.ShouldBe(4)
assertion succeeds.Actual result
The
BField
value that comes through is 0 and the...ShouldBe(4)
assertion fails.Environment
graphql-dotnet version 3.0.0
The text was updated successfully, but these errors were encountered: