Skip to content

Commit f47b824

Browse files
svidgenRachel Lee Nabors
authored andcommitted
added callout for DataStore JS auto-conversion of undefined to null (#5274)
* added callout for js auto undefined to null conversion * slight rewording
1 parent 08af7f9 commit f47b824

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/fragments/lib/datastore/js/data-access/save-snippet.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ await DataStore.save(
66
status: PostStatus.INACTIVE
77
})
88
);
9-
```
9+
```
10+
11+
<Callout>
12+
13+
Omitted or `undefined` optional fields are converted to `null` upon instantiation.
14+
15+
</Callout>

0 commit comments

Comments
 (0)