code: function(req, res) {
              var name    = req.params.name;
              var query   = this.fromJson(req.query.query);
              var fields  = this.fromJson(req.query.fields);
              var sort    = this.fromJson(req.query.sort);
              var limit   = this.toInt(req.query.limit);
              var offset  = this.toInt(req.query.offset);
              var collection = new mongodb.Collection(this.db, name);
              var cursor = collection.find(query, fields);
              if (sort) {
                  cursor.sort(sort);
              }
              if (limit) {
                  cursor.limit(limit);
              }
              if (offset) {
                  cursor.skip(offset);
              }
              cursor.toArray(function(err, docs) {
                  if(err){
                      res.send(400, err);
                  } else {
                      if (req.query.var) {
                          var script = req.query.var + " = " + JSON.stringify(docs) + ";";
                          res.send(script);
                      } else {
                          res.send(docs);
                      }
                  }
              });
          }
docs: Find documents