Skip to content

Commit 891b044

Browse files
authored
Update documentation for auto-incremented keys
1 parent 5c86474 commit 891b044

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/Table/Table.put().md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ The optional second *key* argument must only be used if the table uses [outbound
3737

3838
If the operation succeeds, then the returned Promise resolves to the key under which the object was stored in the table.
3939

40+
### Case for autoIncremented keys
41+
42+
In case the item's primary key is not specified and the schema specifies it to be auto-incremented, the operation will be equivalent to Table.add() and the item's resulting key will be set on the item' declared primary key property - this only apply to table.add() and table.put() but not table.bulkAdd() or table.bulkPut().
43+
4044
### See Also
4145

4246
[Table.update()](/docs/Table/Table.update())

0 commit comments

Comments
 (0)