title: How to find id of the last element/object in a meteor collection?
body: <p>I have a collection in meteor that comes from a form(Form is created using aldeed:autoform). I want to extract the id of the last element/object (or most recent entry) of the collection. How can I do that?? </p>
  
  <p>Edit: Here is what the autoform looks like:</p>
  
  <pre><code> PlayersList = new Mongo.Collection("players");
   PlayersList.allow({
       insert: function(){
  
       }
  });
  PlayersListSchema = new SimpleSchema({
  name: {
      type: String,
      label: "Name",
  
    },
    age: {
      type: Number,
      label: "Age"
    },
    gender:{
      type: String,
      label: "Gender"
  
    },
    country: {
      type: String,
      label: "Country of Birth",
  
    },
    race: {
      type: String,
      label: "Ethnicity",
  
    },
    income: {
      type: Number,
      label: "Income",
  
    },
    education: {
      type: String,
      label: "Education Level",
  
    },
  });
  PlayersList.attachSchema(PlayersListSchema)
  </code></pre>
  
  <p>With Each form an id is generated. I want the id of the last form in the database.</p>