electrodb
Advanced tools
Changelog
[2.7.1] - 2023-07-03
if_not_exists()
if the attribute is not a composite attribute in an index.Changelog
[2.7.0] - 2023-07-01
delete
, remove
, update
and upsert
operations. These types were incorrect and did not reflect the real values returned. Instead of breaking the APIs, changing response types to T | null
, the new response type is now the Entity's key composite values by default. You can also now use the Execution Option response
to get back the item as it exists in the table. This is the closed I could get to a non-breaking change that also fixes the incorrect return typing for these methods.contains
where conditions to accept collection element values (e.g., set
and list
type attributes).UpdateEntityItem
was incorrectly typed, it now includes the correct typing as the values that can be passed to the set
methodreadOnly
attributes when applying changes. If an attribute is configured as readOnly
ElectroDB will apply the property with an if_not_exists
set operation to prevent overwriting the existing value if one is set.Changelog
[2.6.1] - 2023-06-09
Changelog
[2.6.0] - 2023-05-22
hydrate
. When a GSI uses a KEYS_ONLY
projection, the hydrate
option will perform the query and then a subsequent batchGet
to "hydrate" the results.conversion
methods to help transform values between "composite attributes", "keys", and "cursors".patch
operations. The response type for patch
now returns an Entity item when passed the execution options { response: 'all_new' }
or { response: 'all_old' }
..params()
to log out parameters and then call .go()
on the same chain. The fix was to prevent duplicative side effects from occurring on each subsequent terminal method call.response.data
as never
when the transaction included more than one element.Changelog
[2.5.1] - 2023-03-22
Changelog
[2.5.0] - 2023-03-19
get
and write
transactions are now supported in ElectroDB via transact write and transact get methods.Changelog
[2.4.2] - 2023-03-03
ignoreOwnership
execution option. Addresses Issue #194 which calls out regression with ignoreOwnership
. This flag is now appropriately applied to "query", "get", and "scan" operations.Changelog
[2.4.1] - 2023-01-20
createSchema()
function would validate but not return the schema object providedChangelog
[2.4.0] - 2022-01-19
size()
, type()
and escape
. Addresses Issue#208 [read more]createSchema()
function for helping create and type ElectroDB schemas without instantiating an Entity. Addresses Issue#167. [read more]