Jeremy Daly
Jeremy Daly
Sorry for being late to this conversation, but any Entity written to the table using the toolbox should get an `_et` value (unless you disabled it). If it doesn't have...
Hey all, I think an overhaul of `Table` and `Entity` constructors makes a lot of sense. The original API was designed back in 2019, so TypeScript support wasn't really on...
> And some parts of the API are simply confusing and error prone: > - Defining arrays containing numbers ? (I think default function is enough) > - Defining map...
Hi @kr1p70n1c! The only way the `if_not_exists` should be generated is if you set a `default` for the attribute. Can you post your `Table` and `Entity` definitions?
Ah, I see. The point of the `if_not_exists` for `default` values is so that when an `UpdateItem` is called without specifying the value, it'll send the default value in to...
Hmm, that's not the way it should work. Check v0.4.X of the library to see if there is a change in behavior, but that shouldn't have been touched. I'll mark...
Thanks for reporting this. We'll take a look.
Looks like a test is failing.
Can you refactor this to merge to main? v0.4 was merged in.
@naorpeled, let's add an option to the `put`, `update` and `putBatch` methods to allow for skipping the entity schema check. Maybe `strict: false`? Also, all other checks (typing, required, etc.)...