Skip to content
This repository was archived by the owner on Jun 24, 2021. It is now read-only.

Conversation

@cysp
Copy link

@cysp cysp commented Feb 9, 2018

Presently, a field that is marked as a List is represented in the schema as a List of Nullable elements, but it seems that the elements themselves can be marked NonNull?

Concretely, this turns a list-of-strings field from [String] to [String!], maintaining nullability of the overall value but marking each element of the array as not nullable.

Developing against a schema with nullable list elements in a null-safe language (in this case Swift) is not much fun. ☹️

@cysp cysp force-pushed the feature/nonnull-list-elements branch from b4e8448 to f1f8fe3 Compare February 16, 2018 08:47
@cysp cysp force-pushed the feature/nonnull-list-elements branch 2 times, most recently from 82b830a to f1f8fe3 Compare August 6, 2018 06:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant