electrodb
Advanced tools
Changelog
[1.6.3] - 2022-02-22
data
update operation ifNotExists
to allow for use of the UpdateExpression function "if_not_exists()".Changelog
[1.6.2] - 2022-01-27
create
, patch
, and remove
will now refer to primary table keys through parameters via ExpressionAttributeNames when using attribute_exists()
/attribute_not_exists()
DynamoDB conditions. Prior to this they were referenced directly which would fail in cases where key names include illegal characters. Parameter implementation change only, non-breaking.Changelog
[1.6.1] - 2021-12-05
find()
and match()
methods would incorrectly select an index without a complete partition key. This would result in validation exceptions preventing the user from querying if an index definition and provided attribute object aligned improperly. This was fixed and a slightly more robust mechanism for ranking indexes was made.Changelog
[1.6.0] - 2021-11-21
ElectroError
and ElectroValidationError
message
of the error thrown by a validation function was persisted back through to the user, now the error itself is also accessible. Reference the exported interface typedef for ElectroValidationError
here to see the new properties available on a thrown validation error.get
, set
, and validate
are now consistently given an Array of values. These functions would sometimes (incorrectly) be called with a DynamoDB DocClient Set.Changelog
[1.5.0] - 2021-11-07
limit
has an extended meaning with the change to automatically paginate records on query. The option limit
now represents a target for the number of items to return from DynamoDB. If this option is passed, Queries on entities and through collections will paginate DynamoDB until this limit is reached or all items for that query have been returned. [read more]pages
has been added to coincide with the change to automatically paginate all records when queried. The pages
option sets a max number of pagination iterations ElectroDB will perform on a query. When this option is paired with limit
, ElectroDB will respect the first condition reached. [read more]Changelog
[1.4.8] - 2021-11-01
Changelog
[1.4.7] - 2021-10-20
add()
update mutation now resolves to ADD #prop :prop
update expression instead of a SET #prop = #prop + :prop
Changelog
[1.4.6] - 2021-10-20
ignoreOwnership
being used.