benhutchins / dyngoose

Elegant DynamoDB object modeling for Typescript.
https://www.npmjs.com/package/dyngoose
ISC License
89 stars 14 forks source link

Is there option to save unknown columns with batchPut? #638

Closed michalkotowski1 closed 1 year ago

michalkotowski1 commented 1 year ago

Im saving records with hundreds of fields, sometimes there are fields that are not specified in definition, and I also needs to save them.

Is there a way to save document with fields which were not specified in table definition (sth like dynamoose saveUnknown).

BTW, great job with this lib/api def/doc!

benhutchins commented 1 year ago

There isn't support for saving unknown columns yet, but I do plan to add that in a future release.

benhutchins commented 1 year ago

The List attributes and Map attributes now support saving unknown columns, as part of Dyngoose 4.1.0. The table-level support should be coming out in the next release, Dyngoose 4.2.0.

benhutchins commented 1 year ago

I have added support for Dynamic attributes using AWS's marshall utility, see the docs.