await t.set(itemDoc, {
['${order.catalogType}.item']: admin.firestore.FieldValue.arrayUnion(item)
}, {merge: true})
this doesn't work. I am trying to have the variable order.CatalogType.item, the order.catalogtype is the variable and the item is the array name. item should be a string. when updating, firestore does the entire ${order.catalogType}.item. if I remove the ${} and just use order.catalogType.item, I get Chicken.item instead of mapping into the chicken and updating the item, it just creates a whole new object called Chicken.item ... is there a way to map a string and var?