Retroactively updating related documents when another collection is modified

You simply should not refer to documents from other collections with dynamic data. The _id field is unique, it is indexed and cannot be modified.

You may use transactions to update both collections when changing a referee to update its referrers.

Change stream can also be used to do a delayed update of the referrers.

I think groupName in first collection will be better named groupNameKey.