I've been searching the MongoDB docs and also looking at javascript alternatives. However, it does not seem like theres an easy way to do this.
I need to get a list of the unique field names within my collection. Some of the documents contain more fields than others.