eelke
06/20/2018, 1:31 PMNote that a to-many relation field is always set to required. For example, a field that contains many user addresses always uses the type [Address!]! and can never be of type [Address!]. The reason is that in case the field doesn't contain any nodes, [] will be returned, which is not null.
Andrew Mead
06/20/2018, 2:20 PM[Address]!
is important. I don't understand the benefits of [Address!]!
though.Avi Block
06/20/2018, 2:41 PM[Address]!
means you have a guarantee of an array, but that array could have null values in itAvi Block
06/20/2018, 2:41 PM[null]
would be a legal response in that schema.Andrew Mead
06/20/2018, 3:59 PMeelke
06/21/2018, 9:35 PM[Address!]!
does not mean that there's always at least one item in the array (of type Address
? It just means that if there is an item, it must be an Address
?Avi Block
06/22/2018, 3:04 AMeelke
06/26/2018, 8:07 PM