In a Firestore document in a 'shows' collection, I have two fields: "artist" and "date". What is the best way to create a new field called "name" which combines the "artist" and "date" fields.
{
"artist": "Pink Floyd",
"date": "19650303"
}
For example, lets say "artist" = "Pink Floyd" and "date" = "19650303". Then "name" should be "19650303_pinkfloyd".
{
"artist": "Pink Floyd",
"date": "19650303",
"name": "19650303_pinkfloyd"
}
I can combine thee fields in the HTML. But I want it stored in the Firestore database so that I can call on that field in other apps. And I obviously want the "name" field to change if either the "artist" or the "date" field are changed.
Is this something Google Cloud Functions would handle?