tywalch / electrodb

A DynamoDB library to ease the use of modeling complex hierarchical relationships and implementing a Single Table Design while keeping your query code readable.
MIT License
956 stars 58 forks source link

Fixes 362 #368

Open tywalch opened 3 months ago

tywalch commented 3 months ago

This branch fixes issue #362. The root cause of the issue was that one of the composite attributes was hidden. Because the cursor was created using the "formatted" return item, it was the hidden composite was not available to the cursor formatting function. We now check for this unique case and perform some additional calculations. Ideally this reduces the surface area of performance implications to only entities that have a hidden composite attribute defined.

tywalch commented 3 months ago

TODO: unit tests

netlify[bot] commented 3 months ago

Deploy Preview for electrodb-dev canceled.

Name Link
Latest commit a6d6c9eaff3848c19f7a9dcc111741d94490a9f4
Latest deploy log https://app.netlify.com/sites/electrodb-dev/deploys/6605ce8ad4a3620008e77328