その出会いはある日の職場の飲み会でのこと


What is the meaning and function of the word koto in this sentence?

> その出会いはある日の職場の飲み会でのこと

I’ve asked everywhere but I still haven’t received an explanation that not
only made sense to me but also helped me understand when and how to use こと
this way.




Ending an extended phrase with a noun like this means the phrase modifies the
noun. So, in means "thing" in English, therefore:

"It happened at a workplace drinking thing."

This is informal in English but is completely acceptable in Japanese.

