title: SQL view in mongodb
body: <p>I am currently evaluating mongodb for a project I have started but I can't find any information on what the equivalent of an SQL view in mongodb would be. What I need, that an SQL view provides, is to lump together data from different tables (collections) into a single collection.</p>
  
  <p>I want nothing more than to clump some documents together and label them as a single document. Here's an example:</p>
  
  <p>I have the following documents:
  cc_address
  us_address
  billing_address
  shipping_address</p>
  
  <p>But in my application, I'd like to see all of my addresses and be able to manage them in a single document. </p>
  
  <p>In other cases, I may just want a couple of fields from collections:</p>
  
  <p>I have the following documents:
  fb_contact
  twitter_contact
  google_contact
  reddit_contact</p>
  
  <p>each of these documents have fields that align, like firstname lastname and email, but they also have fields that don't align. I'd like to be able to compile them into a single document that only contains the fields that align.</p>
  
  <p>This can be accomplished by Views in SQL correct? Can I accomplish this kind of functionality in MongoDb?</p>