Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.1.0 #466

Merged
merged 3 commits into from
Jan 26, 2025
Merged

Conversation

tywalch
Copy link
Owner

@tywalch tywalch commented Jan 24, 2025

Fixed

  • Issue #464; When specifing return attributes on retrieval methods, ElectroDB would unexpectly return null or missing values if the options chosen resulted in an empty object being returned. This behavor could be confused with no results being found. ElectroDB now returns the empty object in these cases.

Added

  • ElectroDB Error objects no contain a params() method. If your operation resulted in an error thrown by the DynamoDB client, you can call the params() method to get the compiled parameters sent to DynamoDB. This can be helpful for debugging. Note, that if the error was thrown prior to parameter creation (validation errors, invalid query errors, etc) then the params() method will return the value null.

- [Issue #464](#464); When specifing return attributes on retrieval methods, ElectroDB would unexpectly return null or missing values if the options chosen resulted in an empty object being returned. This behavor could be confused with no results being found. ElectroDB now returns the empty object in these cases.

### Added
- ElectroDB Error objects no contain a `params()` method. If your operation resulted in an error thrown by the DynamoDB client, you can call the `params()` method to get the compiled parameters sent to DynamoDB. This can be helpful for debugging. Note, that if the error was thrown prior to parameter creation (validation errors, invalid query errors, etc) then the `params()` method will return the value `null`.
Copy link

netlify bot commented Jan 24, 2025

Deploy Preview for electrodb-dev canceled.

Name Link
🔨 Latest commit d56f31e
🔍 Latest deploy log https://app.netlify.com/sites/electrodb-dev/deploys/6793f3b1cc926b0008053ef9

@tywalch tywalch merged commit a1b6627 into master Jan 26, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant