Adding and event -doc to the emit to allow returning the full doc on an evnet type.
Adding and event -doc to the emit to allow returning the full doc on an evnet type.