Watch for changes in documents that match a specific criteria

Thank you John, things are coming along. I have now hit the next hurdle. I don’t seem to be able to access the data retrieved.
In Visual Studio code I have been able to access the changed fields and the following has been logged to the console.

updateDescription: {
    updatedFields: { 'location.coordinates.1': '2' },
    removedFields: [],
    truncatedArrays: []
  }

But I cannot get at the data in the updatedFields field.

I have tried this:

const changedData = (data.updateDescription.updatedFields);
    console.log(changedData);

which results in this:
{ 'location.coordinates.1': '2' }

but:
console.log(changedData.location);

is undefined, I can’t get at the data.
I want to be able to access the array “location” and extract the two values, location.coordinates[0] and location.coordinates.[1]

The data object behaves like a normal object allowing me to get at its values through dot notation but only down to updatedFields. Then I am blocked.

Again, any light you can shine on this will be greatly appreciated. there is some fundamental logic that I don’t understand.

John