sam-goodwin / eventual

Build scalable and durable micro-services with APIs, Messaging and Workflows
https://docs.eventual.ai
MIT License
174 stars 4 forks source link

fix: entity with sort fails to query without sort #355

Closed thantos closed 1 year ago

thantos commented 1 year ago

When an Entity has a sort key and that key is a string, omitting the sort key from the query key fails. This is because the sort key is serialized to an empty string instead of undefined as expected and dynamo doesn't allow empty key values.