You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds more documentation around lists in the schema basics
documentation page. More specifically it adds the following:
- Explicitly state that nested lists work as defined
[here](https://spec.graphql.org/October2021/#sec-List) in the GraphQL
spec.
- Add a table with examples for list nullability. I've found that list
nullability is often a hurdle for new GraphQL developers and a table
with examples will hopefully make this concept a lot easier to
understand
This is my first PR here so please let me know if I did anything wrong
or how I can improve to better match the documentation style 😄.
Bydefault, it'svalidforanyfieldinyourschema to return `null` instead of its specified type. You can require that a particular field _doesn't_ return `null` with an exclamation mark `!`, like so:
@@ -82,6 +84,15 @@ type Author {
82
84
- If `!` appears_outside_thesquarebrackets, _thelistitself_can'tbe `null`.
0 commit comments