title: How to do recursive CTE ( SQL server Equivalent ) in Mongo DB
body: <p>Does MongoDB have something similar to what the SQL standard calls recursive CTEs (Common Table Expression)? 
  You can see a SQL Server example of this halfway down <a href="https://stackoverflow.com/questions/29127163/sql-server-bom-recursion-from-the-bottom-up">this</a> page.</p>