awslabs / dynamodb-data-mapper-js

A schema-based data mapper for Amazon DynamoDB.
https://awslabs.github.io/dynamodb-data-mapper-js/
Apache License 2.0
817 stars 106 forks source link

Get/Set fields outside of schema #67

Open ecwyne opened 6 years ago

ecwyne commented 6 years ago

Is it possible to get and/or set fields that don't exist in the schema?

Thanks for the amazing library!

jeskew commented 6 years ago

The mapper will ignore fields not declared in the schema at the top level of a document, but you can use the Any, Collection, or Hash types for properties that contain arbitrary data.