Skip to content

Commit 2e93392

Browse files
jferrettibokeSashko Stubailo
authored andcommitted
Add one more valid case (graphql#287)
1 parent 8ad405a commit 2e93392

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

site/learn/Learn-Schema.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ This means that the _list itself_ can be null, but it can't have any null member
201201

202202
```js
203203
myField: null // valid
204+
myField: [] // valid
204205
myField: ['a', 'b'] // valid
205206
myField: ['a', null, 'b'] // error
206207
```
@@ -215,6 +216,7 @@ This means that the list itself cannot be null, but it can contain null values:
215216

216217
```js
217218
myField: null // error
219+
myField: [] // valid
218220
myField: ['a', 'b'] // valid
219221
myField: ['a', null, 'b'] // valid
220222
```

0 commit comments

Comments
 (0)