title: Node.js find result by ID from mongoDB
body: <p>I am new in Node.js so sorry if this is really stupid question but however I try I can't find the answer.</p>
  
  <p>I have some simple code:</p>
  
  <pre><code>var express = require("express");
  var mongoose = require("mongoose");
  var cors = require("cors");
  
  mongoose.connect('mongodb://localhost/simple')
  
  var personSchema = {
      firstName:String,
      lastName:String,
      email:String
  }
  
  var Person = mongoose.model('Person', personSchema, 'people')
  
  var app = express();
  app.use(cors());
  
  app.get('/people', function (req, res) {
      Person.find(function (err, doc) {
          res.send(doc);
      })
  })
  
  app.get('/people/:id', function (req, res) {
      Person.findById(req.params.id, function (err, doc) {
          res.send(doc);
      })
  })
  app.listen(3000);
  </code></pre>
  
  <p>This should return some data I insert to mongo DB, while first one /people/ return everything correctly (basicly just return dump of DB)</p>
  
  <p>The second one with ID return nothing. I try to debug it and I see that inside of function ID is defined correctly, I also used ID which comes from "people" site (something like : <code>55e028081181bfdd8a7972d2</code> ), dispite this fact I am not able to get any answer or error.</p>
  
  <p>Is there a chance someone can advise me where can be a problem?</p>