title: Can't retrieve and use a DocumentReference field in a Firebase function
body: <p>I won't include code here because I've tried so many things that didn't work that I wouldn't know which one to quote.</p>
  <p>I am trying to write a Firestore cloud function using TypeScript that will detect when a Firestore document is created using .onCreate(), retrieve the reference field for the creator of that document, and then use that reference to update a field in the creator's user record. Basically, I want a field for the user that keeps a tally of how many documents they have created in a certain collection. I know there is probably a more direct way to do this, but please humor me.  I have other ways I would like to use this as well.  I've been trying to debug, and when I get data from the reference field, it seems to get identified simply as [object Object].  Can anyone point me in the right direction?</p>