aws-appsync-community icon indicating copy to clipboard operation
aws-appsync-community copied to clipboard

Support for ULID with arbitrary timestamp

Open borgoat opened this issue 5 months ago • 0 comments

A very common use case we have in our Dynamo Table are ULIDs used as sort keys: not only does this make it trivial to get the most recent items, but it can also very easily be used to query items by arbitrary date ranges. Except this now requires a Lambda to compute a ULID at the specific timestamp(s) we need in our query,^1 to compute the key condition expression.

Would it be reasonable to extend $util.autoUlid^2 to accept a timestamp parameter, or alternatively add another built-in function to compute such ULIDs?

borgoat avatar Feb 13 '24 13:02 borgoat