There is doc document in details collection, and it is child of {id} document in col collection.
What I want to do is, when user changes fields in col/{id}/details/doc, I wanna update fields in col/{id}.
exports.onChanged = functions.firestore
.document('col/{id}/details/doc')
.onWrite((change, context) => {
.....
However, I don't know how to get {id} in JavaScript.
Is there way to get id as String?