{"_id":"ia-mongo","_rev":"27-8df0a96f088270f067ed7ed29853d1a5","name":"ia-mongo","description":"Mongo DB Operations Framework to be used with ia-schema","dist-tags":{"latest":"2.1.8"},"versions":{"0.0.1":{"name":"ia-mongo","version":"0.0.1","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.5.*","underscore":"1.7.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","jay-schema":"0.0.2"},"directories":{"test":"test"},"_id":"ia-mongo@0.0.1","_shasum":"1a98c788e90962a1a8a5b0ae9b31560c4a3a15db","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"1a98c788e90962a1a8a5b0ae9b31560c4a3a15db","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-0.0.1.tgz","integrity":"sha512-aHAvKvk9tThgPhfZgBiE6gHg6w88gzrhu2MxIX3nB9g1Lao6y7+OSxh5Fz9XxAw0PXPS8RJGbiHm1Ahf5w2z3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEwLCOVusg5YehSobvQ3kMrQdI6u7ocIJ6YcKXhR+HtfAiBGcCQEiqkbRyGlY/tsiHmQsILctcy30/BquArhtG6xzA=="}]}},"0.0.0":{"name":"ia-mongo","version":"0.0.0","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.5.*","underscore":"1.7.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"0.0.1"},"directories":{"test":"test"},"_id":"ia-mongo@0.0.0","_shasum":"ff1870559bf6a9e34fe0beab7139d2e33d82e6d7","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"ff1870559bf6a9e34fe0beab7139d2e33d82e6d7","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-0.0.0.tgz","integrity":"sha512-MLpkO8AcD6CH2VxizK/qYy05SF1UDIgVZBxedCsH+RbJ15bllc0LtJYZSjFND2MXcCZhDF7f9El6HHT5aSWJIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+JBFpynsg6m35bN3glI0jCKxGGzVy8HfgoYmYvnPW4gIhAJDLBmhesJHc+bo/VH+icxAUZw2wMwftx103igJHBPCf"}]}},"0.0.2":{"name":"ia-mongo","version":"0.0.2","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.5.*","underscore":"1.7.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"0.0.1"},"directories":{"test":"test"},"_id":"ia-mongo@0.0.2","_shasum":"7ae2d9cad0637cb8d00616fba47d34e5afc27ecc","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"7ae2d9cad0637cb8d00616fba47d34e5afc27ecc","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-0.0.2.tgz","integrity":"sha512-52Y3SYdeTKUn5DKBdUaK6NHbzENhXtrd15Ohn8oVokip/WSFJRVEV9f4Amvp5H8fKtWTkLodVHbjAS4vhSzx8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwNkOSXd6QRYMRaMFhkb1qCEK1v5uUg1aL+jTzmLSWHAiB5eLQS4yagik53aogANDGsa2OHKbuVT7BUOQ8XkKYjrQ=="}]}},"0.0.3":{"name":"ia-mongo","version":"0.0.3","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.5.*","underscore":"1.7.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"0.0.5"},"directories":{"test":"test"},"_id":"ia-mongo@0.0.3","_shasum":"37bdc979fc6a3bf0b8e9089b304de2d0c2dfa540","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"37bdc979fc6a3bf0b8e9089b304de2d0c2dfa540","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-0.0.3.tgz","integrity":"sha512-LPdq4V0t4Gy9s5E7T8o11x5PwYb4SWmVjYh/5l2khPS8Zmg1csQLcyyOnHBAU462PBxt2KcGeZgpx01L67u/dA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4nGFmW9uAJH4sl8L0B0i+gdQHQZwh+nFF5XzwqcrM2AiAq8RmVdAcWxsyZLvf1PpStRppiDKt9sX4vaF6bYrc+rw=="}]}},"1.0.0":{"name":"ia-mongo","version":"1.0.0","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.5.*","underscore":"1.7.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.3"},"directories":{"test":"test"},"gitHead":"05227e5815990b388a872cebeed324eac3afd3ef","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@1.0.0","_shasum":"24028b842c542b60e1058d5bfbb4545905ad8c38","_from":".","_npmVersion":"2.2.0","_nodeVersion":"0.10.25","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"24028b842c542b60e1058d5bfbb4545905ad8c38","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-1.0.0.tgz","integrity":"sha512-vIEOrg8YgorK6tUo3zeC1lKYKsmrkjAujFxeVnhe93RoEhGBrTcByeqWlg5Qh7Nh1M2Dh08Q5X1fS/x5KwXI1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHPo5Oi9LY4bwCjMrMothq6o3VZWAXlfiM7AwIPZwx8YAiEAvV/dQnxlBWSkBB8MEZxIXEHuX3e+D/U8CzjycO8xTIQ="}]}},"2.0.0":{"name":"ia-mongo","version":"2.0.0","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.7.*","underscore":"1.8.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.4"},"directories":{"test":"test"},"gitHead":"6cd7cbe06d2e08af408ae7c5f0900912c9c09e50","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@2.0.0","_shasum":"f0ccbfb29594271fd768c234b916ab2204662ffe","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.0","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"f0ccbfb29594271fd768c234b916ab2204662ffe","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-2.0.0.tgz","integrity":"sha512-D2/ZPLqj5Nl93oKAkuQV30hCyTBFdK6wzKi4GfDFL0UKgrFjnS56Cc2kGT/PQzg5j9me7wTDvYDpPVd9UmGyLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE/Ot7jbtAcnH1WSA2mvmi+PQqQbRBhjXCw/JIWnopvYAiEA6me1kuEEtAYtqou0xvwJmn4GgnMz09SWDuH19piQyMc="}]}},"2.1.0":{"name":"ia-mongo","version":"2.1.0","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.7.*","underscore":"1.8.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.4"},"directories":{"test":"test"},"gitHead":"975cd0cf73c2bf66c890dd5c7a71feec14bdd996","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@2.1.0","_shasum":"b2e49d0ab728c400cd7e07f41b51b3b9ce862db8","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.0","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"b2e49d0ab728c400cd7e07f41b51b3b9ce862db8","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-2.1.0.tgz","integrity":"sha512-ovaJ6nG72BnENa0+L6kPvOTpX+uTbCQfO5+WDtZjQGlZzczWVbUNWRHYBSf3JhTYUjMSjcoprlhFk1Pn6TtMaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwIs2+90wcqW+UMg1Qr7ot1ZKIoqzNy/IZqz9Xk1gtXAIgW1fBFLDdjpwsO/TwJkyyP7zZRu2qO+RWslxp3Wp7xOg="}]}},"2.1.1":{"name":"ia-mongo","version":"2.1.1","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.7.*","underscore":"1.8.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.4"},"directories":{"test":"test"},"gitHead":"45eddf8ac77be10df22b020404fd7e7b4abc8d89","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@2.1.1","_shasum":"e6ff277c9b6849ed7d60ed2e206b1af3cf880ba2","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.0","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"e6ff277c9b6849ed7d60ed2e206b1af3cf880ba2","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-2.1.1.tgz","integrity":"sha512-hHSUu+zEyat4VbU7JMDm1K+ZKjuPgO4tJJoUPYkD+jZ7ti/QPUrLOSuFuzJj8L2JWwEX7EZ8WQq+cI356d/EwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHps/pTVVa8lahR90XGJHoCgqAx5ToAWK355hHM7QbjuAiEA4sTxMt+4Yknx+m4ItFruIoVKRUwgN2riodpRkSUFh1s="}]}},"2.1.2":{"name":"ia-mongo","version":"2.1.2","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.7.*","underscore":"1.8.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.4"},"directories":{"test":"test"},"gitHead":"642c8a24ed028618e89365e245b3bd7fc4a92452","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@2.1.2","_shasum":"e42881193233ff1bb96bd4e45c8fe4f6b59bd342","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.0","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"e42881193233ff1bb96bd4e45c8fe4f6b59bd342","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-2.1.2.tgz","integrity":"sha512-NiwNgCH5lwGKC1VCXORNFBfzlBFHh5T3cq79LYVFpaCssP3ux0VOn/HeTMSGfBXdKcc5xvAK+MddqIVdSKgr1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzb8F7PZ6DXKjmExqc0ZB9fRe0ew3vDvY9+Qd9hDNMjAiB7dcNdWEdDv5hteB6ezSgC91kvU4D//Jqf84FKG48Bsg=="}]}},"2.1.3":{"name":"ia-mongo","version":"2.1.3","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.7.*","underscore":"1.8.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.5"},"directories":{"test":"test"},"gitHead":"642c8a24ed028618e89365e245b3bd7fc4a92452","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@2.1.3","_shasum":"cdb9f1c5caa5d67601afda154e7fce0c3131bd0c","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.0","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"cdb9f1c5caa5d67601afda154e7fce0c3131bd0c","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-2.1.3.tgz","integrity":"sha512-+M/38yCCRH9qdUqIx1hQB7nYE0lcLEbEL2p86OQoWpt6+JAILg33vIGOG/Xvogk0IKnto9eR0lHJ8Vr7zbzI4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYTy4We3xyZgGFI9cQdtxGwdSMm3uPflItJ3pKFOXFCAiEAoUv9rzR4LELDelYJY3n/S2vlx5pRtTCvvL5HqyjIIIo="}]}},"2.1.4":{"name":"ia-mongo","version":"2.1.4","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.7.*","underscore":"1.8.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.5"},"directories":{"test":"test"},"gitHead":"5e1d500e5e8d425501f18df50895813300d93927","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@2.1.4","_shasum":"05eb754d9dd1f03cad34d2a798161b8ea396cc71","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.0","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"05eb754d9dd1f03cad34d2a798161b8ea396cc71","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-2.1.4.tgz","integrity":"sha512-WtCHsZkW1niA5j/Bw6/vI4NHvUH2FzTWQKAf8bAQRZHF2FOW4CtZMKD61sNthYyYOAUBu+nB37QxyCNCHD+eSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGzj9uoMWvKAfZZmXjiWJ1IiFJkOsE/MGcPVgjWzt9+gAiBjduKa1u5YH4Dq6VSMzNoUCButphMHOtArrTcwbp6Dxg=="}]}},"2.1.5":{"name":"ia-mongo","version":"2.1.5","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.7.*","underscore":"1.8.*","mongodb":"~2.*"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.5"},"directories":{"test":"test"},"gitHead":"856376426f0222815a26ab33193bb1cf504569c4","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@2.1.5","_shasum":"31f915796723a93293458d2c5e50411302083baa","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.0","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"31f915796723a93293458d2c5e50411302083baa","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-2.1.5.tgz","integrity":"sha512-jpvQ++0C9u/O21a5WZbNaeEE5FTwIBscHoEi3Vbmo6KAjuEIxTKH77nx46BeyA5MrJsx4cxjfHKaQjeeBDAhJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGoQUew7bNQ2pnIVu1nEfJ/CsczePSjjqBxz+Pf9in7gAiEAlwF+EvcONLuj7TR2kuSPj1sG5Z5Rxpq5yxi15X4Cv+w="}]}},"2.1.6":{"name":"ia-mongo","version":"2.1.6","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.7.*","underscore":"1.8.*","mongodb":"~2.*"},"engines":{"node":">= 0.10.0"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.5"},"directories":{"test":"test"},"gitHead":"856376426f0222815a26ab33193bb1cf504569c4","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@2.1.6","_shasum":"eed2ff9b5398def5676b388eb5e63fb232f0fac5","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.0","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"eed2ff9b5398def5676b388eb5e63fb232f0fac5","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-2.1.6.tgz","integrity":"sha512-Ua0Vff4w7TxZhBU7Gv8/173xy1QEM1oW+ypxKe5yIf1maPKxo2Zef/og42ONSoQDxCHn5/NXH8eJsMrVneZOuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEpXPumo162t9N5gNBoO0UNzDI1s27nn+ZNYn5eVMspOAiALK2wReUMCXcEWwlKUo1d8Hykx802CmY5RptEHYUL5Aw=="}]}},"2.1.7":{"name":"ia-mongo","version":"2.1.7","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.7.*","underscore":"1.8.*","mongodb":"~2.*"},"engines":{"node":">= 0.10.0"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.5"},"directories":{"test":"test"},"gitHead":"6918a90fb3f207d5f26a717d3c55e06f43ab8b9c","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@2.1.7","_shasum":"0d1cb856051465f4d4491188675e17edb8c5957e","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.0","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"0d1cb856051465f4d4491188675e17edb8c5957e","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-2.1.7.tgz","integrity":"sha512-DX1XWCu9xXy0fQ1so48cepsP2t9G1q+uj5qxCVVGK66RkkBwtMxGxv/uuIw2XPkNq5/KNjgnPoDB9ybpMHhR7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIErgHgaTHuKMMN8xjL3VGyJyP+QCpyLOw+xRQR+kOmL7AiBxQQQPY7l5kK/Zz8HmSoDKEp/Eb/z/Q46jqtsNc6DeKw=="}]}},"2.1.8":{"name":"ia-mongo","version":"2.1.8","description":"Mongo DB Operations Framework to be used with ia-schema","main":"index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"keywords":["mongo","schema"],"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","dependencies":{"when":"3.7.*","underscore":"1.8.*","mongodb":"~2.*"},"engines":{"node":">= 0.10.0"},"devDependencies":{"mocha":"2.0.1","chai":"1.9.2","chai-as-promised":"4.1.1","ia-schema":"1.0.5"},"directories":{"test":"test"},"gitHead":"6918a90fb3f207d5f26a717d3c55e06f43ab8b9c","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"},"homepage":"https://github.com/interactioncr/iamongo","_id":"ia-mongo@2.1.8","_shasum":"b104e62ad4a9a9ffe6baca6b9008afe75d0ccc29","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.0","_npmUser":{"name":"zombitos","email":"jprodma@gmail.com"},"maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"dist":{"shasum":"b104e62ad4a9a9ffe6baca6b9008afe75d0ccc29","tarball":"https://registry.npmjs.org/ia-mongo/-/ia-mongo-2.1.8.tgz","integrity":"sha512-QY5RskJCf9IEz4DH/u1ixX2X/m4B9hoW7NV8WHY6xYo22nLVx6rNgLpK2MkTFKVhFrMqrbM9YqAmhnpTXybWiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0e7VifHcxJCrJnFKT6IBNmNhgVYpHT0Nu4aeR09lxVAiEA3moUd/t/ZvXp2bk2uBsI9PJTeWcLAdT4Uyl2XlbAjd4="}]}}},"readme":"IAMongo\n===============\n\nMongo DB Operations Framework to be used with ia-schema\n\n## Installation\n\n  npm install ia-mongo\n\n## Basic Usage\n\n  ### Vars\n  ```javascript\n  var IASchema = require('ia-schema');\n  var IAMongo = require('ia-mongo');\n  var connUrl = 'mongodb://localhost/iamongo';\n\n  ```\n\n  ### Connect to Database\n  ```javascript\n  IAMongo\n    .pConnect(connUrl)\n    .then(function() {\n      console.log('Connected Correctly to DB');\n      });\n    }, function(err) {\n      console.log(err);\n    });\n  ```\n\n  ### Create a Schema with ia-schema\n  ```javascript\n  var JaySchema = new IASchema({\n    name: {\n      required: true,\n    },\n    lastname: {\n      required: true\n    },\n    email: {\n      type: String,\n      required: true,\n      index: 1,\n      indexOptions: {\n        unique: true\n      },\n      validator: function(val) {\n        var regex = /^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,4})$/;\n        if (!regex.test(val)) {\n          return false;\n        }\n        return val;\n      }\n    },\n    createdAt: {\n      type: Date,\n      required: true,\n      index: 1,\n      default: function() {\n        return new Date();\n      }\n    },\n    deletedAt: {\n      type: Date,\n      default: null\n    }\n  }, schemaOptions);\n  ```\n  ### Register the model to IAMongo\n\n  Basic registration\n  ```javascript\n  IAMongo.register('Jay', JaySchema);\n  ```\n\n  You can register custom methods to add extra operations, or operation wrappers to the models\n\n  ```javascript\n  var methods = {\n    sayHello: function() {\n      return 'Hello';\n    },\n    pFindByEmail: function(email) {\n      return this.pFindOne({\n        email: email\n      }).then(function(result) {\n        return result;\n      }, function() {\n        return 'ERROR!!!!';\n      })\n    }\n  };\n  IAMongo.register('Jay', JaySchema,methods);\n  ```\n  Methods parameter needs to be an object.\n  Methods properties names need to different form IAMONGO reserved operation names:\n    pMakeStruct\n    pFindAndModify\n    pUpdate\n    pDestroy\n    pCreate\n    pFindOne\n    pFindMany\n    pCount\n\n  ### Load Models\n  You can use loadModels method to require the files of a folder where your models are, that way you can make sure when you call a model it has already been registered\n\n  ```javascript\n  IAMongo.loadModels(__dirname + '/models/');\n  ```\n\n  ###Express app.js example\n  ```javascript\n  IAMongo.pConnect(config.db)\n    .then(function() {\n      IAMongo.loadModels(__dirname + '/_app/models/');\n      var app = express();\n      //EXPRESS CONFIGURATION WOULD BE HERE\n      module.exports = app;\n    }, function(err) {\n      console.error('IAMONGO CONNECTION ERROR:', err);\n    });\n  ```\n\n  ### Get the registered Model\n  ```javascript\n  var Jay = IAMongo.model('Jay');\n  ```\n  ### Create an Struct Manually\n  ```javascript\n  Jay.pMakeStruct({\n      name: 'Jose',\n      lastname: 'Rodriguez',\n      email: 'j@interaction.cr'\n    }).then(function(result) {\n        console.log('struct', result);\n      });\n  ```\n\n  ### Make an insertion to DB\n  ```javascript\n  Jay.pCreate({\n      name: 'Jose',\n      lastname: 'Rodriguez',\n      email: 'j@interaction.cr'\n    })\n    .then(function(result) {\n        console.log('new Jay', result[0]);\n      });\n  ```\n  ### Use a custom operation\n  ```javascript\n  Jay.pFindByEmail('j@interaction.cr').then(function(result) {\n    console.log('Found Jay', result);\n  });\n  ```\n\n## Posible Operations To DB (Doc in progress)\n\n  ### All operations will return a promise\n\n  ### Check <a href='https://github.com/interactioncr/iaschema'>IA-Schema</a> documentation for Schema Details\n  ```javascript\n  Jay.pMakeStruct(data,options,extention)\n  ```\n  \n  ### Find and Modify\n  ```javascript\n  Jay.pFindAndModify(query, data, options)\n  ```\n  Query: the search criteria the document needs to meet to be updated\n\n  Data: Update Object, needs to be \n  key = Valid Mongodb update operator(Such as set, push, inc. Check mongodb documentation for operators) \n  value = object with poperties to update\n  **Note: The operators can with or without the '$' sign\n\n  ```javascript\n  //Example\n   Model.pFindAndModify({\n        email: 'test@email.com'\n      }, {\n        set: {\n          email: 'test2@email.cr'\n        },\n        $inc:{\n          timesLogged: 1\n        }\n      }, {\n        new: true\n      })\n  ```\n\n  Options: Options available to mongodb for findAndModify, such as {new:true}. Search mongoDB documentation for available options\n  **Note: results sorting needs to be defined withing options paramenter\n  ```javascript\n  {\n    sort:{createdAt:1}\n  }\n  ```\n\n  pFindAndModify will run ia-schema pMakeStruct operation with option \n  omitUndefined set to true to validate the data parameter.\n  Check <a href='https://github.com/interactioncr/iaschema'>IA-Schema</a> documentation for Schema Details\n\n  ### Update\n  ```javascript\n  Jay.pUpdate(query, data, options)\n  ```\n  Query: the search criteria the document needs to meet to be updated\n\n  Data: Update Object, needs to be \n  key = Valid Mongodb update operator(Such as set, push, inc. Check mongodb documentation for operators) \n  value = object with poperties to update\n  **Note: The operators can with or without the '$' sign\n\n  ```javascript\n  //Example\n   Model.pUpdate({\n        email: 'test@test.cr'\n      }, {\n        set: {\n          name: 'Hola',\n          lastname: 'Mundo'\n        },\n        $setOnInsert: {\n          createdAt: new Date()\n        }\n      }, {\n        upsert: true\n      })\n  ```\n\n  Options: Options available to mongodb for update, such as {upsert:true}. Search mongoDB documentation for available options\n\n  pUpdate will run ia-schema pMakeStruct operation with option \n  omitUndefined set to true to validate the data parameter.\n  Check <a href='https://github.com/interactioncr/iaschema'>IA-Schema</a> documentation for Schema Details\n\n\n  ### Create\n  ```javascript\n  Jay.pCreate(data, options)\n  ```\n  Data parameter can be an object or an array of objects.\n  Either way the result will be an array of objects with the new\n  documents.\n\n  Options object, check mongodb documentation for inserting options.\n\n  pCreate will run ia-schema pMakeStruct operation to validate the data parameter.\n  Check <a href='https://github.com/interactioncr/iaschema'>IA-Schema</a> documentation for Schema Details\n\n  ### Find One\n  ```javascript\n  Jay.pFindOne(query, options)\n  ```\n  Query: the search criteria the document needs to meet to be found\n\n  Options: fields to be returned or excluded, mongo does not allow\n  excluding and including fields definition.\n  ```javascript\n  //INCLUDING FIELDS\n  {\n    fields:{\n      createdAt:1\n    }\n  }\n  //EXCLUDING FIELDS\n  {\n    fields:{\n      _id:0,\n      email:0\n    }\n  }\n  ```\n  ### Find Many\n  ```javascript\n  Jay.pFindMany(query, options)\n  ```\n  Query: the search criteria the documents need to meet to be found\n\n  Options: fields to be returned or excluded, mongo does not allow\n  excluding and including fields definition.\n  Also other options such as sorting, check mongo documentation\n  for available options.\n  ```javascript\n  //INCLUDING FIELDS\n  {\n    fields:{\n      createdAt:1\n    }\n  }\n  //EXCLUDING FIELDS\n  {\n    fields:{\n      _id:0,\n      email:0\n    }\n  }\n  ```\n  ```javascript\n  //SORTING NEEDS TO BE DONE IN ARRAY NOTATION\n  {\n    fields:{\n      createdAt:1\n    }\n    sort:[['createdAt','desc'],['name','asc']]\n  }\n  ```\n  ### Destroy\n  ```javascript\n  Jay.pDestroy(query, options)\n  ```\n  Query: the search criteria the documents need to meet to be destroyed\n\n  Options: justOne: Boolean, default true. If true only destroys the first document found, \n  if false it deletes all documents that meet the criteria\n  ```javascript\n  //DESTROYS FIRST FOUND\n  {\n    justOne: true //default\n  }\n  //DESTROYS ALL THAT MEET CRITERIA\n  {\n    justOne: false\n  }\n  ```\n\n  ### Count\n  ```javascript\n  Jay.pCount(query)\n  ```\n## Tests\n\n  npm test\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style.\nAdd unit tests for any new or changed functionality. Lint and test your code.\n\n## Release History\n\n* 0.0.1 Initial release\n* 0.0.3 Updated ia-schema test version\n* 1.0.0 Integrated ia-schema operations to model\n* 2.0.0 Change Update Interfaces\n* 2.1.0 Added pDestroy function\n* 2.1.1 Fixed nested updates\n* 2.1.3 Strong validation form update operators\n* 2.1.4 Added features methods and loadModels\n* 2.1.5 Fixed Nested property update bug\n* 2.1.6 Node version fixed\n* 2.1.7 Format\n* 2.1.8 Added comparison operations to id parser","maintainers":[{"name":"zombitos","email":"jprodma@gmail.com"}],"time":{"modified":"2022-06-18T23:51:02.432Z","created":"2015-01-12T21:55:05.160Z","0.0.1":"2015-01-12T21:55:05.160Z","0.0.0":"2015-01-12T22:09:45.145Z","0.0.2":"2015-01-12T22:10:02.581Z","0.0.3":"2015-01-30T18:10:21.074Z","1.0.0":"2015-02-09T05:27:40.001Z","2.0.0":"2015-03-04T19:41:24.926Z","2.1.0":"2015-03-05T20:50:32.216Z","2.1.1":"2015-03-06T16:50:41.740Z","2.1.2":"2015-03-06T19:56:34.130Z","2.1.3":"2015-03-17T20:55:57.449Z","2.1.4":"2015-03-24T23:49:29.520Z","2.1.5":"2015-03-30T17:18:33.803Z","2.1.6":"2015-04-20T15:55:33.315Z","2.1.7":"2015-04-20T16:01:38.295Z","2.1.8":"2015-06-22T16:42:17.991Z"},"keywords":["mongo","schema"],"repository":{"type":"git","url":"git+https://github.com/interactioncr/iamongo.git"},"author":{"name":"Jay","email":"jprodma@gmail.com","url":"http://www.interaction.cr/"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/interactioncr/iamongo","bugs":{"url":"https://github.com/interactioncr/iamongo/issues"}}