jasoncraftscode / dynamodb-datamodel Goto Github PK
View Code? Open in Web Editor NEWDynamoDB single table design in javascript and typescript made easy.
Home Page: https://JasonCraftsCode.github.io/dynamodb-datamodel/
License: MIT License
DynamoDB single table design in javascript and typescript made easy.
Home Page: https://JasonCraftsCode.github.io/dynamodb-datamodel/
License: MIT License
Hi,
I was looking for a library to use DynamoDb as a single table design and this lib looks promising.
I could not find an example of how to use this with multiple models in a single table, except when having embedded models. Is there a way to use multiple Models in a Single Table? (The definition of the returned model should be left to the user who defines the access patterns)
Is your feature request related to a problem? Please describe.
Update.setIndexes should support undefined and null in values array . To both skip undefined values and delete null values.
Describe the solution you'd like
See above
Describe alternatives you've considered
Update.delIndexes can be used, but supporting in setIndexes is more convenient with setting multiple indexes.
Additional context
None
Is your feature request related to a problem? Please describe.
Update.del doesn't take any args. To make it easy to delete an entry in a map attribute would be nice if del could support an optional path. Or maybe add a mapDel method so typescript can type check that it can only be used by a map or list attribute.
Describe the solution you'd like
see above
Describe alternatives you've considered
Update.map can be used to do deep deletion, but it isn't obvious or intuitive to use.
Additional context
none
Is your feature request related to a problem? Please describe.
Update.modelMap currently requires the inner models to be none null, not allowing the delete operation at the map key level.
Describe the solution you'd like
Update.modelMap should support null which will delete the map key and its data from the item.
Describe alternatives you've considered
Update.delete can be used, but it means that add/update would be separate from delete. Also all properties support null to delete.
Additional context
none
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.