smallrye-graphql icon indicating copy to clipboard operation
smallrye-graphql copied to clipboard

Type-safe client (client model implementation) wrong behavior with nested collections parameters

Open mskacelik opened this issue 1 year ago • 0 comments

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

mskacelik avatar Jan 30 '25 11:01 mskacelik