title: Mongodb graphLookup
body: <p>Since MongoDB recently introduced graphLookup, I was trying to find if that can hold a simple social relationship graph. I currently use neo4j just for this purpose. </p>
  
  <p>I understand graphLookup as a recursive search, it just go deeper thru the 'connectFromField' of each document. </p>
  
  <p>Though I am able to do the basic stuff, I want to give more properties for each relation. For instance, the first example here:(employees and reporting hierarchy) </p>
  
  <p><a href="https://docs.mongodb.com/manual/reference/operator/aggregation/graphLookup/" rel="nofollow noreferrer">https://docs.mongodb.com/manual/reference/operator/aggregation/graphLookup/</a></p>
  
  <pre><code>{ "_id" : 2, "name" : "Eliot", "reportsTo" : "Dev" }</code></pre>
  
  <p>If I need to add a start date to the 'reportsTo' value, something like this: </p>
  
  <pre><code>{ "_id" : 2, "name" : "Eliot", "reportsTo" : {"name": "Dev", "from": "date"  } }</code></pre>
  
  <p>I am afraid this is not supported. </p>
  
  <p>I would like to know if someone has used the MongoDB this way. </p>