The playerId needs to be generated for the player by the server, if the player isn't providing one themselves already. Using the classic anti pattern of 'navigation by exception', I had originally attempted a couch key lookup directly of the provided playerId and if that failed, assigned them a fresh one in the catch block.
To fix this, the dummy data-access now also generates an Id if one isn't provided already.
The playerId needs to be generated for the player by the server, if the player isn't providing one themselves already. Using the classic anti pattern of 'navigation by exception', I had originally attempted a couch key lookup directly of the provided playerId and if that failed, assigned them a fresh one in the catch block.
To fix this, the dummy data-access now also generates an Id if one isn't provided already.