<@UBER6N7K7> I upgraded to the latest version with...
# graphql-nexus
e
@jasonkuhrt I upgraded to the latest version with the nonNullDefaults change and set both input and output to non-null, since thatโ€™s how I was using before, but the items of a list still default to nullable, is this expected behavior?
r
Hey @Eric Reis ๐Ÿ‘‹ For lists, I think you would need to add
list: [true]
to the input options.
j
@matic recently hit this issue too, we're aware nullability in general is causing considerable friction for users. Thanks for raising!
e
imo everything non-nullable is a good enough default, do we know what it will look like in the future?
j
I was referring to the API
List members may be non-nullable by default in the future. other than that no changes planned.
๐Ÿ‘ 1
CC @weakky
a
the nullablity for a list is scattered in 2 different properties,
nullable
and
list
, a typegraphql like API would be loveable, like an union type for nullable:
boolean|'list'|'list-and-item'|'item'
@jasonkuhrt
j
@Albert Gao feature requests welcome! The solution should account for nested lists too
๐Ÿ‘ 1