Skip to content

Nested collections do not work in Kotlin (server) #2266

@mskacelik

Description

@mskacelik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions