Query again. I have come up with this question years ago and the answer was pretty much this one I’m giving. It is fine tho.
Also, an Upsert only show the “present” version of the data. New data it won’t return in the same transaction. You have to create another one.