So, let's talk about what just happened. Besides the fact that we revolutionized twitter, we did the following:
- We defined the structure of our tweet.
- We grabbed the new tweet key.
- We grabbed the connected user uid.
- We created a new updated object and both added a route to our overall tweets and updated the one with its given key, also the tweets will be added or saved over user's own personal tweets because we've updated both places in the same time.
- We called the update() function over the root reference of our database and since we're using the schema, the Updates object will simultaneously update both fields with the needed data.
Congratulations! You've successfully updated both fields with one call. Keep in mind that ...