MongoSchema.findById

Finds one element with the object id id.

  1. typeof(this) findById(BsonObjectID id)
    mixintemplate MongoSchema()
    static
    typeof(this)
    findById
    (
    BsonObjectID id
    )
  2. typeof(this) findById(string id)

Throws

DocumentNotFoundException if not found

Meta