Can I use an entities sortKey as number #183
-
I have an entity which needs as sortKey a number
timestamp is of type number but as far as I can see the sortKey timestamp is then rendered as string before PUT. Is it possible to change that? |
Beta Was this translation helpful? Give feedback.
Answered by
whimzyLive
Dec 2, 2021
Replies: 1 comment 5 replies
-
Hi @obiwabrakenobi , Yes, it is supported via
Let me know if this helps. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
whimzyLive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @obiwabrakenobi ,
Yes, it is supported via
aliases
.if your entity contains an attribute named as
timestamp
, then instead of defining a template for sortKey as{{timestamp}}
, you can directly reference that attribute, likeLet me know if this helps.