Opportunities In order to index mongoose references you can refer following example.