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
In Ruru, if a mutation takes an input with an array field, the mutation input will be templated as a singular value instead.
Here's an example, to illustrate:
In the above schema, the propertyDefinitions field of the CreateAspectTypeInputRecordInput type (phew, that's a mouthful) is an array type:
But when using the Explorer panel to build a mutation, the actual mutation that Ruru templates out provides a single object value for propertyDefinitions, rather than an array of objects. This is true even for primitive values; fields that should be arrays of strings are templated as strings instead.
Steps to reproduce
Create a schema with a mutation whose input type has at least one array field
Open Ruru and start a mutation in the Explorer panel
Select your mutation type
Expected results
The code panel should contain a mutation with an array for the array field of the input
Actual results
The code panel contains a mutation with singular value for the array field of the input
Additional context
N/A
Possible Solution
N/A
The text was updated successfully, but these errors were encountered:
Summary
In Ruru, if a mutation takes an input with an array field, the mutation input will be templated as a singular value instead.
Here's an example, to illustrate:
In the above schema, the
propertyDefinitions
field of theCreateAspectTypeInputRecordInput
type (phew, that's a mouthful) is an array type:But when using the Explorer panel to build a mutation, the actual mutation that Ruru templates out provides a single object value for
propertyDefinitions
, rather than an array of objects. This is true even for primitive values; fields that should be arrays of strings are templated as strings instead.Steps to reproduce
Expected results
The code panel should contain a mutation with an array for the array field of the input
Actual results
The code panel contains a mutation with singular value for the array field of the input
Additional context
N/A
Possible Solution
N/A
The text was updated successfully, but these errors were encountered: