keystonejs / keystonejs/keystone
When defaultFieldMode: 'read' is set, nulled values are not distinguishable from empty strings.
Open
- Dominant language
- TypeScript
- Stars
- 10k
- Forks
- 1.3k
- Avg merge
- 19h 14m
- Merged PRs (30d)
- 19
Description
If a field is set to `text({ db: { isNullable: true } }),` and for the schema `itemView: { defaultFieldMode: 'read', },` is active, then the view does not make it clear, if en empty string is set or `null`.
if `defaultFieldMode` is not set to `read`, then you see if the value is actually `null`:

Expected behaviour: Show `null` if `null` is in the database.
Contributor guide
Assessment
This issue has not been assessed yet.