hello I’m just trying out the `@nonnull` directive...
# apollo-kotlin
m
hello I’m just trying out the
@nonnull
directive and the docs seem to indicate that using it on a collection should make both the
List
and its type non-null, but what I am currently getting is a non-null list of a nullable type, i.e.
items: [Item]
->
val items : List<Item?>
. anything I’m missing?
b
HI! Are you referring to this doc? I think it is incorrect indeed!
There are ongoing talks in the GraphQL specification to allow this in a standard way - but it's still early and Apollo Kotlin doesn't support it for now. We also have this ticket for a similar idea of doing this.
m
Yep that was the example I was referring to. Thanks for clarifying!
👍 1
b
I'll fix the misleading doc 🙂