Describe the bug
Hi, i recently got an issue with a stitched schema. My [Long!] content is getting concatenated to a array of one item (concatenation of all items). I've been able to notice that on version 10.3.6 and 10.4.3 (latest release).
I've been able to test some things :
Stitched variable of type [Long!] and [Int!] are concatenated.
To Reproduce
Steps to reproduce the behavior:
query GetMyData($Ids: [Long!]) {
myfield {
mystitchedfield(ids: $Ids) {
count
}
}
}
arguments
{
"Ids": [1,2,3,4,5,6]
}
this requests when stitched will send [123456] to the server instead of [1,2,3,4,5,6]
Expected behavior
An array of 5 Scalar elements should not be concatenated into an array of 1 element
Desktop (please complete the following information):
Additional context
https://github.com/erwan-joly/HotChocolateStitchingBug
this bug is shown in this small repo. To use it
query ($ids: [Int!]) {
getids(ids: $ids)
}
with arguments
{
"ids": [
1,
2,
3
]
}
when post to http://localhost:5050 the result is
{
"data": {
"getids": [
123
]
}
}
when post to http://localhost:5051 the result is
{
"data": {
"getids": [
1,
2,
3
]
}
}
We can reproduce that and are working on a fix.
I can confirm 10.5.0-preview.7 solve the issue as expected
Most helpful comment
We can reproduce that and are working on a fix.