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

Model lists as Lists of NonNull elements #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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. ☹️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant