I wanna add properties such as "created_by" and "created_at" to each and every object in pretty much every collection in firestore.
The only approaches I can think of so far are.
- Add them in the client-side code but verify them on the server side using Security Rules.
or better:
- Add them automatically on the server side using Cloud Firestore function triggers onCreate and onWrite events.
However, both approaches sounds like workarounds for a very common task for which I would expect an out-of-the-box solution.
Does anybody know any out-of-the-box approach for that?