"use strict";

var PouchDB = require('pouchdb');

var db = new PouchDB('http://localhost:5984/map-reduce');

exports.getAllBooks = function getAllBooks() {
  return db.query(function (doc) {
    emit(doc._id, doc);
  });
};


exports.getAllBookTitles = function getAllBookTitles() {

};

exports.getExpensiveBooks = function getExpensiveBooks() {

};

exports.getPriceForOneOfEverything = function getPriceForOneOfEverything() {

};

@@ -272,24 +272,93 @@
 kTitles() %7B%0A
+  return db.query(function(doc) %7B%0A    emit(doc._id, doc.title);%0A  %7D);
 %0A%7D;%0A%0Aexports

implement getAllBookTitles