socketsupply/dynavolt

Sanity check test: What happens if I `put()` into a naive DB

Opened this issue · 1 comments

A dynamodb Table can be created with hashkey only or hashkey + rangekey

The put() api requires a hashkey & a rangekey.

What happens when I put with a range key into a table that has been configured to be hashkey only ?

put doesn't require a range key this function accepts it but checks if it was passed or not, returning an appropriate object with or without it. Most functions work like this.