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

Nested collections do not work in Kotlin (server)

Open mskacelik opened this issue 1 year ago • 0 comments

Code

@Query
fun foo(bar: List<List<Int?>?>): Int {
     // ...
}

Generates this given schema:

"Query root"
type Query {
  foo(bar: [Int]!): Int!
}

but it should be:

"Query root"
type Query {
  foo(bar: [[Int]]!): Int!
}

The code works in Java.

mskacelik avatar Jan 30 '25 13:01 mskacelik