title: Find for every name in array some user data out of another collection in Meteor
body: <p>Hi Guys I am trying to get for every name in the array "eingeladene" the email adress the "Vorname" and the "Nachname" I have a for loop to go over again and again but my find is outputting "null" ;( so my find is not working correctly I have two collections one is named "Events" where the array is inside and in the collection "Benutzer" is the User Data i want to get.    </p>
  
  <p>In the array the "Vorname" is inserted so I am searching for the user with this name ("Vorname") and than get the email +  the "Nachname" </p>
  
  <pre><code>for (var i in eingeladene) {
  
      var email = Benutzer.findOne({"Vorname": eingeladene[i]}, {fields: {email: 1}});
      var Vorname = Benutzer.findOne({"Vorname": eingeladene[i]}, {fields: {Vorname: 1}});
      var Nachname = Benutzer.findOne({"Vorname": eingeladene[i]}, {fields: {Nachname: 1}});
  */
  
      if (! email) {
          continue;
      }
  
      var emailData = {
          Name: Name,
          Beschreibung: Beschreibung,
          erstelltAm: new Date(),
          Datum: Datum,
          Eingeladen: eingeladene,
          Autor: Autor,
          Einladender: Einladender
      };
  
      Email.send({
          to: "email",
          from: "example@gmail.com",
          subject: "Einladung",
          html: SSR.render('EinladungsEmail', emailData),
      });
  
  } 
  </code></pre>
  
  <p>Thank you for every help and yes I already red the documentation
  By the way @iiro helped me to get so far</p>
  
  <p><strong>Update:</strong> I tried with the same code and to check the generated data I  inserted the data in a different collection and I was wrong it is not "null" i now get this:</p>
  
  <pre><code>{
    "_id": "HDF3XnvKzovnNdEiW",
  
    "Email": {
      "_id": "Gkddi6KhYf6BmF3jv",
      "email": "examplemail@gmail.com"
    },
    "Vorname": {
      "_id": "Gkddi6KhYf6BmF3jv",
      "Vorname": "exampleVorname"
    },
    "Nachname": {
      "_id": "Gkddi6KhYf6BmF3jv",
      "Nachname": "exampleNachname"
    }
  } 
  </code></pre>
  
  <p>The Problem with this is that for every part the id is inserted with the data </p>
  
  <p>My goal would be this </p>
  
  <pre><code>"Email": "examplemail@gmail.com"
  </code></pre>
  
  <p>Hope you can help me now ;)</p>