{"_id":"mongo-gyro","_rev":"50-8457700395d2ed9c268b806b1aef3e46","name":"mongo-gyro","description":"A lightweight wrapper for MongoDB using promises","dist-tags":{"latest":"0.1.22"},"versions":{"0.1.0":{"name":"mongo-gyro","version":"0.1.0","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.0","dist":{"shasum":"f1432e5945ae705971c9653f931988a52a550135","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.0.tgz","integrity":"sha512-DTdsMirByD248nfZl4xQ5qA0gvPuCrHTu0NnWkqh2ueIRaxQ/0fjoqQCPyvrQ5Ggt4UQH9SGU8SZ3uu/TVlHbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBZW97Ru90fE1LSpszAILEOsdGHjOCEtvsfwbJXzo8gvAiEA/VYYEaKy22zs66h/PHcYyYjiS2VeCzaHBYvYayi3rWs="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"}]},"0.1.1":{"name":"mongo-gyro","version":"0.1.1","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.1","dist":{"shasum":"9afee5ce83c4bf19bfebbd20367326ca88037f5a","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.1.tgz","integrity":"sha512-gND3bbnLiiYIsfmp05bcQr7+y5Lo5nabdXFF638HMUtw/YQno/h8congQV37rkJdFCLXA5Pa8WnRCmya5sg5rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMgH55pZF+vqVQADilt5o90KY0qY/Iuh4F210NlBmQ4AIgXajPmGdqnYno6do43sSGL2G8KK/tcgX1zBVWabf9pfY="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"}]},"0.1.2":{"name":"mongo-gyro","version":"0.1.2","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.2","dist":{"shasum":"dfc1a589d8d6190dd977345b9f1157f3220db60a","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.2.tgz","integrity":"sha512-jblxwS7SnSXTiszUBP1PrCBokk8HgKCGaOQSESP2DBDzDabJMhdBD69ttbZqyYut0xNxK2grBRj8SDvsuHMsjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHLgMTybjMt4csOR0eyonE//5IGj1sueOfn34AYH03CvAiAaeF2ip/FINLhYEojz6e2DK+JrV27TEpL1zSUQ1q+IhQ=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"}]},"0.1.3":{"name":"mongo-gyro","version":"0.1.3","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.3","dist":{"shasum":"dd44f46282ba5d1b63702ec96d734f87688df2fb","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.3.tgz","integrity":"sha512-ZmoeubmSBI2I87SgxYjns04OWbQnH5XO4XZuWDhKHweDMssatBR7LtcxI357C0a6KtiCmU+I+ddu7alFkjpOsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEbgUYMsq2VXGxEVrmthtreCXEqNXe+MCTBXDCeJiAsAAiEA/AWI4Sbu5uX7khL6JMAN/Om/8yI2m1x7CviwJRpRc5s="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"}]},"0.1.4":{"name":"mongo-gyro","version":"0.1.4","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.4","dist":{"shasum":"66193cfb92d58ec5886ff177049013de4f86bf3b","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.4.tgz","integrity":"sha512-DEwJYN5RC0daN0SDdTDO4OMtRGyoKvKoAj4UTVUteVWBPkgsJTvBtHwIGD0fRGaYa42kyUKB+3AC0JXxmgM/cA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCglYcTwMk1EaQoTiXp55j/VcCKkP4/rls9xcEELOJ7twIgc/YVLZxbOb25sfwIPvSYvHuAvZbCPDapjgk+X/Ca2RM="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"}]},"0.1.5":{"name":"mongo-gyro","version":"0.1.5","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.5","dist":{"shasum":"dd7f1154fe48f15335054c0b4751526c9d22003c","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.5.tgz","integrity":"sha512-bt8+Rcq/iMIvuyC9G2Fy6y17hfCrLoa8Nxq6l+yiPd++Tf9BaWfBfrEWQG30MD/+C0azlLQcRLpp8nFkB8vbfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJcHWDD1AXxPTg8Nx+jEH1AxHqC+2LRptieHo1amodZwIgIum7+btnQzaJe7fNQ0XGMAANCU5R88y+wSeGQWlpNvc="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"ptshih","email":"ptshih@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.6":{"name":"mongo-gyro","version":"0.1.6","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.6","dist":{"shasum":"55f6150a7499ba390e7e4ca3fa11ae0d2c4bbf0b","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.6.tgz","integrity":"sha512-hwMe89wvZOPmRNBpN91VUAT2AuwxBqYTBVYpAFA+EzpsvjTLQ3Zn8TSt4IJu0woxW0ciY+uB62f+c6lA4QzQ1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7hvUT6V26mVD+vfiW85inrnU8Ukstg03zSiC5Oug/nAIgP4C+u3woI+6osZsOwbKNOb64UWKke1rk02Jkf2BYeLg="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.7":{"name":"mongo-gyro","version":"0.1.7","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.7","dist":{"shasum":"d4ee3b6bf1d1935629b8844e466ba720562e72fa","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.7.tgz","integrity":"sha512-nAWNw6SsrJZGZ5Of/+EP+IWIXCVaTVfkpcV4D1vFqtYksiQdXrsjFc2g1u3GGGXhpDuT4RE2tLEas9FpsqaU8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPEcKxuEaaJv3qBtfaTdnNKF6Fvk9SUCCxdQmZMo602gIgBrg/PrT8+XAqRkeN2HSJlKs0GwIYreIpQxSj6+PpMH0="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.8":{"name":"mongo-gyro","version":"0.1.8","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.8","dist":{"shasum":"4ff04dff1ff758307399743a200c92b07b37de7c","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.8.tgz","integrity":"sha512-xKppx7zy1yXfPm7EBcUXwhapLo89Nif+usmOmWGyiKbpzFYLsscBkY1maRXnJ5LurAA99ocrcP40JWszFoZXKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBqJqjA9aCTxsPLvNyIOYCBASVwh6TKZCHhCASIExtMjAiAYQc6Y1pxtYNZ7HiIC5xTouIDzdSHPpw7bVUHhW0Iy4A=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.9":{"name":"mongo-gyro","version":"0.1.9","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.9","dist":{"shasum":"ebbe41080350b420df94da2350af09930da52651","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.9.tgz","integrity":"sha512-qB/4shRbaTl9njdGyIYq5L443xvSfiKe2hOiahVPoEFA4miJtRwbXUVmBAazcVlzFJuV0zRWs8h1pa/8RmJh8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZ/DL5DZ1G2DJ5yYPEoYjdqy93i77zvC/0l3CqRBi5xAiEA8wyUccBPRy/DcBW4ZslbQ+ThARw5YNeyHj48818qlj8="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.10":{"name":"mongo-gyro","version":"0.1.10","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.10","dist":{"shasum":"17f1c8f11986804d32dc3933187f81d3ae9786be","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.10.tgz","integrity":"sha512-Fvvd+IYTjzSEgkFp4cd4J5k0dQ3qxHqaNgVC48eH5P4v+BMybZUFlK3R5eYAd7FpvKcpV4S/OL57LTWdhQ4bfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFjIYuptTDMKwt1tndF6bSbSt7iyAeqWqDIvndmch31nAiEA0xM/zxw34MUsP2obvnK/o9XF47vEp3BiRF1hURyxGco="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.11":{"name":"mongo-gyro","version":"0.1.11","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.11","dist":{"shasum":"7699edfd4e9a2874e3c87d64cd24058d9acd4f97","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.11.tgz","integrity":"sha512-W2XjSvOFQUcQFC863GcAfsojOufKUB0viUDNGGv5OZHIqY+jPY6dhhywG+ZmaX1HePv3V8ogoTcHrPnyKLN8qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkhGgPX9uZareelGwoUiv257fewsxO3fvZo1388fXpkQIgYi/SVF9rwSTuagCCGpqF3XqKtZ1i+Sn1oy+H87WcO5I="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.12":{"name":"mongo-gyro","version":"0.1.12","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.12","dist":{"shasum":"474de0e0093cb1b0088b7b2d35727f33909898de","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.12.tgz","integrity":"sha512-jsHdhjIcKt2mqZR5Dste51HVxtXxJ6TNX13fCV/6AerAmrPcouty/Qdn4NPLt/LA6S5hzN80Q+i492SxWdHm8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDv7aAF0PSRM9nVdnPDIjLJa30wMCqVUyrmxn2H25ubCgIgdVg0NwMY3keCyJ5dguhSnb7MHkGlqNl3t+8k6BgwkJU="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.13":{"name":"mongo-gyro","version":"0.1.13","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.13","dist":{"shasum":"fb537f61d15b06e9817e3c8a86a0684043f33710","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.13.tgz","integrity":"sha512-3/AdhrLeCYgeiTtZGaEFl/A/UKsWppKq86AErTDEpkMbA58xnmDTIiDgG7dsx93UsE3vER/T95yTOzBUGnzQAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVk0//CLn0YdGmcuHmO7L8XwhePrZFJHGoWb6ZwiaKQQIgLXXRJDO5z5F4kT5oWRA/NizEZHsKf8PUNPk0YmsiyDc="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.14":{"name":"mongo-gyro","version":"0.1.14","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.14","dist":{"shasum":"8ead05725559a6a5c9c6e6bf71bd27e7cee86f36","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.14.tgz","integrity":"sha512-X7lZrA4iBLtR0ybW13st04VrNvoH3fKTHHgwmVCUe1+5+lvMA7wxHVaRbsXPZakcFs/sSs+LKOeAUOaMrqnP9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkrqGBbbPmBpLnRh8xbLFLON7KBxgCrFBp+CpqJWRbHAiEAnphslyew4c3n6sCb0FFJqmM46ZloiWhRiN2SpQcAZ1s="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.15":{"name":"mongo-gyro","version":"0.1.15","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.15","dist":{"shasum":"17b3f368a31d42b136ab0c1223e981be9467f731","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.15.tgz","integrity":"sha512-pnGL5yeglY4BeAq9mZqcnhUWIomqsPt8N4AicT7iTEH8SP+cXt+/UAXs6EmAyiQZ69Z0RZzS+9xFjvkTmEbBrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGC4DLPDl7huo0QIzLqzxh90j7OE6ZfhAjZWeq3ndM2bAiAVaHWcFoGJUN1/yEpyNlZRAywwZk65cDafUUl6MKDq8Q=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.16":{"name":"mongo-gyro","version":"0.1.16","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~0.10.5-0","lodash":"~2.3.0","mongodb":"~1.3.x"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.16","dist":{"shasum":"1156ed420bb5c0f0865314d9eefe6c9014a4940d","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.16.tgz","integrity":"sha512-vml5mH9ASCG04hYUY9TmKyvGIEbg6WsydeoLQ+BcdICiLiN8wAUgfOigcLbUN8MCeR2Sw7riA+UT3sce+YF0vg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGXMAC3wZvM/Dv8crsSP8Ji6YKRxDM9m2pfIShtCqc/yAiEAnkXionIcycAylulJPLTqyI0WuBLn5HNo5YNDWgHsUj8="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"badave","email":"badave@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.17":{"name":"mongo-gyro","version":"0.1.17","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~1.0.0","lodash":"~2.4.0","mongodb":"~1.4.0"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.17","dist":{"shasum":"332473af277657035984275cf5a0b4876b25ef97","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.17.tgz","integrity":"sha512-lIlu71n0VbsIc5I5dgttPuQwAELEfmOwI0V1jGkGORnKEua7jIN2nkbfBUkMmEGEDKDck7WML7WMFzVTNYyrcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHF0UixJB87Vtol1zo70xKvvUWqAFU8NgjM6/s0zcb4+AiEA+g1XzjYkjirP4s4dVIcmEcR2NhecWSXxBT3e6sczJvo="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"ptshih","email":"ptshih@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.18":{"name":"mongo-gyro","version":"0.1.18","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~1.0.0","lodash":"~2.4.0","mongodb":"1.4.0-rc7"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.18","dist":{"shasum":"02c34084beb7b8247aa589bea59460273fd9f3f2","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.18.tgz","integrity":"sha512-fsz6iyBG7dB10FgnEd5YLJ9nN8UQd2vI5YYOwvcKEJVdTlM0We15mpaMTsUqfLuh7JI0RPdQNeH4W848uTk+RA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAbebPE7FfFerdrYQZgltR+QbQUHpZfJfta/vfSk/+RyAiEAp7nOotoQKZbBPqbERtk4otxRhYhJoAmuV/VZyuVCNXs="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"ptshih","email":"ptshih@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.19":{"name":"mongo-gyro","version":"0.1.19","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~1.0.0","lodash":"~2.4.0","mongodb":"1.4.0-rc8"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.19","dist":{"shasum":"f58f902fe1c5603f2fa8f631fc2533839c06f480","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.19.tgz","integrity":"sha512-/fCu7gt/KWrRvksOFdP9beiC/cDOJHJPPpseGOK3Z0+IyTsCAmW3yV//QT69rh0ZT8avj5E6YQBywV+3NSKe2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNjQbhJBnfpLbh1DB5tFGFcXwl+oAGA57grIJwU0aeBAIgAgzFGAPSCfZIiDIxKg3UM/MKbr0Xx8KmMH8l2hZe1eQ="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"ptshih","email":"ptshih@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.20":{"name":"mongo-gyro","version":"0.1.20","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~1.1.1","lodash":"~2.4.1","mongodb":"1.4.0-rc9"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.20","dist":{"shasum":"dfac903440fe455f543d9b1318fba1da59343d1d","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.20.tgz","integrity":"sha512-hvtxmGGTreY2oOa+I07AP8YAmecIVlm/CdMTQpVtFJ1S5Jje+DRUouVk0vv/QqJZlSElTwdL7/PFApEndzrXIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIASGJd1LBZmd1xcECNZXNAkUTOYvO+XN8mqWe5WZdtT+AiEA9Qy5ckph5FOFsKRLjp8zz74QZkxtt0JEixWYbZ70feY="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"ptshih","email":"ptshih@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.21":{"name":"mongo-gyro","version":"0.1.21","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~1.1.1","lodash":"~2.4.1","mongodb":"1.4.0-rc10"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.21","dist":{"shasum":"200a8d9c8c7922f9357f22df18ea1712c9a97602","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.21.tgz","integrity":"sha512-oDwPjH9RKQFaUPdGKSgHwItgm9tKSrXSU6dMbGuhvWfHRExC6EKS3T6fdkbYYvxAxvQPhvb39OiajKU+yUNF/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjAo5VpE1R5onwfiYoj9EmQstqbK60FcNeZfYMRXyvcQIhALtk47yyZalBCLsuVr22wY8k4n3Fa5tocZFoByloav03"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"ptshih","email":"ptshih@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]},"0.1.22":{"name":"mongo-gyro","version":"0.1.22","description":"A lightweight wrapper for MongoDB using promises","main":"mongo.js","scripts":{"test":"mocha -R spec test/index.js"},"homepage":"https://github.com/airbrite/mongo-gyro","repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"keywords":["mongo","mongodb"],"dependencies":{"bluebird":"~1.2.1","lodash":"~2.4.1","mongodb":"~1.4.0"},"devDependencies":{"mocha":"~1.14.0","grunt":"~0.4.1","grunt-release":"~0.6.0","mocha-as-promised":"~1.4.0","chai-as-promised":"~4.1.0","chai":"~1.8.0","sinon-chai":"~2.4.0","sinon":"~1.7.3","cli-color":"*","groc":"*"},"author":{"name":"David Badley","url":"https://github.com/badave"},"license":"MIT","bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"_id":"mongo-gyro@0.1.22","dist":{"shasum":"a21ea90816902c1dfb82666ae379c020496cd01f","tarball":"https://registry.npmjs.org/mongo-gyro/-/mongo-gyro-0.1.22.tgz","integrity":"sha512-+JRQJaIhJ5qLLhsj1usH8XxlHDpIQlQGyBxrpBdVaS8gvqQRmsHorOZAFRVI2BEHJJ1UiOYFHCi7FcFTjsTgpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfWN/LrJ3k1bY1eXcPtDCMUvNojD/QKP6mDQbqcOunZAIgJcizPSkhI0/BHsxxUjUtaHUendsB3xSmqbO/uB0tiFE="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"ptshih","email":"ptshih@gmail.com"},"maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}]}},"readme":"mongo-gyro\n==========\n\nMongo-Gyro is a light-weight mongo wrapper for nodejs.  We found that the official mongo driver and alternatives were a little odd to use in practice (callback hell or unusual modeling).  Mongo-Gyro takes the official mongo-native driver for nodejs and makes it unsuck.\n\nIt supports both callbacks and promises -- it will callback first and then return the promise.  It casts and uncasts from strings to ObjectIds and back again automagically so you never have to worry about casting again.  Our ultimate goal is to make Mongo fun to work with.\n\nWe've also incorporated into our fork of Bookshelf, making it easy to use either SQL or Mongo using the same ORM modeled on Backbone.  (docs pending)\n\n\n*See MongoDB docs for \"options\" for different calls, and also syntax of objects for update, findAndModify and aggregate calls*\n\n\n## Setup\n```\n  npm install mongo-gyro\n```\n\nor add this to your package.json\n\n```\n  \"mongo-gyro\": \"*\"\n```\n\nand `npm install`\n\n\n## Creating an instance\n\n```\n  var Mongo = require('mongo-gyro');\n\n  var mongo = new Mongo(); // defaults to localhost:27017\n\n  // or\n\n  var url = \"mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]\"; // see http://docs.mongodb.org/manual/reference/connection-string/\n  var mongo = new Mongo(url, [options]); // options here are connection options for mongodb\n```\n\n## Methods\n\nAll calls take a callback as the last parameter OR return a promise.  The promise library used is bluebird.\n\n#### Example using a callback\n\n```\n  mongo.find(\"users\", { \"email\": \"spam@gmail.com\"}, function(err, object) {\n    if(err) {\n      console.log(err);\n    } else {\n      console.log(object);\n    }\n  });\n```\n\n#### Example using a promise:\n```\n  mongo.find(\"users\", { \"email\": \"spam@gmail.com\"})\n    .then(function(object) {\n      console.log(object);\n    })\n    .caught(function(err) { // if there is an error\n      console.log(err);\n    });\n```\n\n\n### Find\n\n`mongo.find(collectionName, query, [options], [callback]);`\n\nOptions can specify sort, limit, skip, fields, and other find options.  Other options are specified in the MongoDB docs.\n\n```\n  mongo.find(\"users\", { \"email\": \"spam@gmail.com\"});\n```\n\n```\n  mongo.find(\"users\", { \"email\": \"spam@gmail.com\"}, { \"sort\": { \"email\": -1 }, \"limit\": 1, \"skip\": 1, \"fields\": { \"name\": true, \"email\": true, \"_id\": true } });\n```\n\n\n### findCursor\n\nSame as find, but you get the cursor back. Recommended for advanced users and only when needed.\n\n\n### findOne\n\n`mongo.findOne(collectionName, query, [options], [callback]);`\n\n```\n  mongo.findOne(\"users\", { \"email\": \"spam@gmail.com\"});\n```\n\n\n### insert\n\n`mongo.insert(collectionName, object, [options], [callback]);`\n\n```\n  mongo.insert(\"users\", { \"email\": \"spam@gmail.com\", \"name\": \"Billy Testestest\"});\n```\n\n\n### update\n\nMongo's update doesn't actually bring back very much information.  We've found that it's almost always preferable for us to use findAndModify, but in some cases update is adequate.\n\n`mongo.update(collectionName, query, object, [options], [callback]);`\n\n```\n  mongo.update(\"users\", { \"email\": \"spam@gmail.com\" }, { \"$set\": { \"name\": \"Willy Testestest\" } });\n```\n\n\n### findAndModify\n\n`mongo.findAndModify(collectionName, query, object, [options], [callback]);`\n\n```\n  mongo.findAndModify(\"users\", { \"email\": \"spam@gmail.com\" }, { \"$set\": { \"name\": \"Willy Testestest\" } });\n```\n\n\n### remove\n\n`mongo.remove(collectionName, query, [options], [callback]);`\n\n```\n  mongo.remove(\"users\", { \"email\": \"spam@gmail.com\" });\n```\n\n### aggregate \n\n\n### aggregate\n\n`mongo.aggregate(collectionName, pipeline, [options], [callback]);`\n\n```\n  mongo.aggregate(\"users\", \n      { \n        \"$match\": { \n          \"email\": \"spam@gmail.com\" \n        } \n      },\n      {\n        \"$project\": { \"email\": 1, \"total\": 1 }\n      },\n      {\n        \"$group\": {\n          _id: \"$email\",\n          revenue: {\n            \"$sum\": \"$total\"\n          }\n        }\n      });\n```\n\n\n### getNextSequence\n\n-- This is a special helper for us.  Specifying { \"upsert\": true } in the options will create it if it doesn't exist (recommended).  Returns the next number in a sequence by incrementing the key \"seq\" in an object.\n\n`mongo.getNextSequence(collectionName, query, [options], [callback]);`\n\n```\n  mongo.getNextSequence(\"users_counter\", { \"name\": \"number_of_users\" });\n```\n\n\n### eraseCollection\n\nDanger -- you probably don't want to put this in your code unless you are a sadomasochist.\n\n`mongo.eraseCollection(collectionName, [callback]);`\n\n```\n  mongo.eraseCollection(\"users\"); // and you definitely don't want this in your code unless its in a unit test\n```\n\n\n### ensureIndex\n\nDoesn't return anything.\n\n`mongo.ensureIndex(collectionName, index, [options], [callback]);`\n\n```\n  mongo.ensureIndex(\"users\", \"name\");\n  \n  mongo.ensureIndex(\"users\", \"email\", {\"unique\": true}); // for uniqueness\n```\n\n\n### dropIndexes\n\nRemoves all the indexes on a collection\n\n`mongo.dropIndexes(collectionName, [callback]);`\n\n```\n  mongo.dropIndexes(\"users\");\n```","maintainers":[{"name":"badave","email":"badave@gmail.com"},{"name":"ptshih","email":"ptshih@gmail.com"}],"time":{"modified":"2022-06-20T05:48:53.781Z","created":"2013-11-26T23:30:21.189Z","0.1.0":"2013-11-26T23:30:22.585Z","0.1.1":"2013-11-27T02:27:55.578Z","0.1.2":"2013-11-28T02:41:25.156Z","0.1.3":"2013-12-03T00:10:03.500Z","0.1.4":"2013-12-05T04:35:51.522Z","0.1.5":"2013-12-06T00:31:34.111Z","0.1.6":"2013-12-06T21:45:18.861Z","0.1.7":"2013-12-13T21:28:39.440Z","0.1.8":"2013-12-14T01:22:58.777Z","0.1.9":"2013-12-14T01:50:11.409Z","0.1.10":"2013-12-17T23:38:29.276Z","0.1.11":"2013-12-17T23:46:45.585Z","0.1.12":"2013-12-18T05:34:14.516Z","0.1.13":"2013-12-19T00:45:43.922Z","0.1.14":"2014-01-07T22:39:11.574Z","0.1.15":"2014-01-08T02:34:16.857Z","0.1.16":"2014-01-08T19:46:51.350Z","0.1.17":"2014-02-20T21:34:11.105Z","0.1.18":"2014-02-22T01:46:19.505Z","0.1.19":"2014-03-05T02:15:19.421Z","0.1.20":"2014-03-21T07:53:28.546Z","0.1.21":"2014-03-25T23:18:47.426Z","0.1.22":"2014-04-07T22:25:49.124Z"},"author":{"name":"David Badley","url":"https://github.com/badave"},"repository":{"type":"git","url":"https://github.com/airbrite/mongo-gyro.git"},"readmeFilename":"README.md","homepage":"https://github.com/airbrite/mongo-gyro","keywords":["mongo","mongodb"],"bugs":{"url":"https://github.com/airbrite/mongo-gyro/issues"},"license":"MIT"}