So I understand that BGA uses transactions and the API indicates that changes are not applied "until your request ends normally." My question is when exactly is this "ends normally"?
I have a game state that after the last player of a turn plays their card I go through a series of routines and determine the player order for the next game state. I put the upcoming turn order into the player table and then the routine transitions the gameState to the next state.
The next game state is a game state type of "game". At this point the the logic needs to pull the next player from my turn order and start the next turn. When I try to do a SELECT statement on the player table nothing gets return in my request. I am guessing it's because my changes have not yet been finalized to the database, but nothing has errored and I moved to the next state just fine.
So at what point do the changes actually get finalized into the database?
I have a game state that after the last player of a turn plays their card I go through a series of routines and determine the player order for the next game state. I put the upcoming turn order into the player table and then the routine transitions the gameState to the next state.
The next game state is a game state type of "game". At this point the the logic needs to pull the next player from my turn order and start the next turn. When I try to do a SELECT statement on the player table nothing gets return in my request. I am guessing it's because my changes have not yet been finalized to the database, but nothing has errored and I moved to the next state just fine.
So at what point do the changes actually get finalized into the database?