My document in DyanamoDB follows the following structure
{
"id": "<<GUID>>",
"ts": <<unix_epoch>>
"audit": {
"lastUpdatedOn": <<unix_epoch>>
}
}
I wan't to create a secondary GSI on this table with id as the PK and the audit.lastUpdatedOn as the SK.
Can I use a nested property as a sort key? (I tried to do it, but it didn't behave the way i wanted it to behave)