I have two collections: users and tweets. I would like to know the AQL query that allows me to insert a new tweet and at the same time update the total tweets from a user.
In the users collection there is a document like: { _key:"user1", total_tweets: 0 }
In the tweets collection there are multiple "tweet" documents like: { _key:"tweet1", from_user:"users/user1" }
How can I insert a new tweet and at the same time update the total_tweets in the user?