Replies: 2 comments 1 reply
-
Option 1Syntax exists to turn Non-Nullable fields NullableFields marked with this syntax are treated exactly like Nullable schema fields. If null is found for one of those fields, then it is returned and no related errors are added to the ExampleSchematype Business {
name: String
isStarred: Boolean!
} Query{
business {
name
isStarred?
}
} If isStarred has a
|
Beta Was this translation helpful? Give feedback.
-
Option 2Syntax does not exist to turn Non-Nullable fields NullableThere is no way to turn Non-Nullable fields Nullable. This is the status quo. |
Beta Was this translation helpful? Give feedback.
-
Spec changes
To get a better idea of where we stand, I'll add a poll so people can vote on their favorite option. This vote is non-binding, and is only one factor in choosing which syntax we land on I'll open new threads for people to discuss each option below.
In this thread we'll be discussing the behaviour of possible syntax that would act as the inverse of
!
. So far in other discussions,?
has been used, so?
will continue to be used in the presented options.Syntax exists to turn Non-Nullable fields Nullable
Syntax does not exist to turn Non-Nullable fields Nullable
Beta Was this translation helpful? Give feedback.
All reactions