Skip to content

Commit 6db273e

Browse files
Remove nullable lists from docs (prisma#851)
Remove nullable lists from docs
2 parents 9d1462c + 9ad5781 commit 6db273e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

docs/data-modeling.md

-6
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,6 @@ The type of a field can be modified by appending either of two modifiers:
168168

169169
In the main example above, the field `name` on the `User` model is _optional_ and the `posts` field is a _list_.
170170

171-
Lists can also be optional and will give the list a third state (which is `null`):
172-
173-
- `Blog[]`: Empty list or non-empty list (default: `[]`)
174-
- `Blog[]?`: `null`, empty list or non-empty list (default: `null`)
175-
176-
The default value for a required list is an empty list. The default value for an optional list is `null`.
177171

178172
### Field attributes
179173

0 commit comments

Comments
 (0)