O'Reilly logo
  • Patrick S thinks this is interesting:

  • Model.find(query) to return an array of instances matching the query
  • Model.findOne(query) to return the first instance found that matches the query
  • Model.findById(ObjectID) to return a single instance matching the given ObjectID