smallrye-graphql
smallrye-graphql copied to clipboard
Type-safe client (client model implementation) wrong behavior with nested collections parameters
When working with nested collections, i.e.:
@Query
List<List<String>> returnStringListList(List<List<String>> someStrings);
Expected: query returnStringListList($someStrings: [[String]]) { returnStringListList(someStrings: $someStrings) }
Actual: query returnStringListList($someStrings: [ListInput]) { returnStringListList(someStrings: $someStrings) }
The cause of this problem is probably here (no recursion): https://github.com/smallrye/smallrye-graphql/blob/7a7a3aba6ef544bb9d5f3761753694f05c372401/client/model-builder/src/main/java/io/smallrye/graphql/client/model/helper/ParameterModel.java#L161-L177