{"_id":"mongodb-scope-client","_rev":"122-4b77620b139c558aa1cc3d2b7455a9e6","name":"mongodb-scope-client","dist-tags":{"latest":"0.11.0"},"versions":{"0.8.0":{"name":"mongodb-scope-client","version":"0.8.0","author":{"url":"http://imlucas.com","name":"Lucas Hrabovsky","email":"lucas@mongodb.com"},"license":"Apache-2.0","_id":"mongodb-scope-client@0.8.0","maintainers":[{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"}],"homepage":"http://github.com/mongodb-js/scope-client","bugs":{"url":"https://github.com/mongodb-js/scope-client/issues"},"dist":{"shasum":"3c99ba0319a79d78a9103a47e19adcb184296c23","tarball":"https://registry.npmjs.org/mongodb-scope-client/-/mongodb-scope-client-0.8.0.tgz","integrity":"sha512-iJH+R0r3iQiYzJrWkidR1NNTDxRU8nOzzoj+KDRuQSSwlrqL+V7RbtEyJlfAuMJYl5Q9RxJATaV+MdGxwaon+w==","signatures":[{"sig":"MEQCIGQXua1kAYwgq9ysEirBs62s3SBNjuURpt7pvw92c/2OAiAQvyWgfW9aampvSB9KcA3tyCNJdHSAWzJjvBkuu7kLaA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"3c99ba0319a79d78a9103a47e19adcb184296c23","gitHead":"83b9c227a8cd02dfa1239721ab6b466acfabf98f","scripts":{"ci":"npm test","fmt":"mongodb-js-fmt lib/*.js test/*.js","docs":"gulp docs","test":"mocha --reporter mocha-evergreen-reporter || npm run mandatory-cleanup","check":"mongodb-js-precommit","start":"zuul --local 3001 --open -- test/*.test.js","pretest":"node bin/start-server.js","posttest":"npm run mandatory-cleanup","prestart":"node bin/start-server.js","poststart":"npm run mandatory-cleanup","mandatory-cleanup":"node bin/stop-server.js"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"precommit":["check"],"repository":{"url":"git://github.com/mongodb-js/scope-client.git","type":"git"},"_npmVersion":"3.5.1","description":"A client for mongodb-scope-server that works in the browser or a server.","directories":{},"_nodeVersion":"4.2.2","dependencies":{"raf":"^3.1.0","async":"^1.5.0","debug":"^2.2.0","mongodb-ns":"^1.0.3","superagent":"^1.6.1","lodash.omit":"^3.1.0","event-stream":"^3.3.2","ampersand-model":"^6.0.2","lodash.trimright":"^3.0.2","socket.io-client":"^1.3.7","socket.io-stream":"0.9.0","mongodb-extended-json":"^1.5.7","mongodb-connection-model":"^3.0.10"},"devDependencies":{"del":"^2.2.0","dox":"^0.8.0","bson":"^0.4.20","gulp":"^3.9.0","zuul":"^3.8.0","mocha":"^2.3.4","backbone":"^1.2.3","through2":"^2.0.0","gulp-util":"^3.0.7","handlebars":"^4.0.5","pre-commit":"^1.1.2","lodash.range":"^3.0.1","mongodb-js-fmt":"^0.0.3","mongodb-runner":"^3.1.15","mongodb-datasets":"^0.1.5","mongodb-js-precommit":"^0.2.8","mongodb-scope-server":"http://bin.mongodb.org/js/mongodb-scope-server/v0.11.0/mongodb-scope-server-0.11.0.tar.gz","eslint-config-mongodb-js":"^1.0.6","mocha-evergreen-reporter":"0.0.7"},"dependency-check":{"ignore":["mongodb-datasets"]}},"0.10.0":{"name":"mongodb-scope-client","version":"0.10.0","author":{"url":"http://imlucas.com","name":"Lucas Hrabovsky","email":"lucas@mongodb.com"},"license":"Apache-2.0","_id":"mongodb-scope-client@0.10.0","maintainers":[{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},{"name":"kangas","email":"kangas@gmail.com"},{"name":"machyne","email":"mcotter222@gmail.com"},{"name":"mongodb-js-user","email":"lucas.hrabovsky+mongodb-js@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"}],"homepage":"http://github.com/mongodb-js/scope-client","bugs":{"url":"https://github.com/mongodb-js/scope-client/issues"},"dist":{"shasum":"cdf5aaff64eedeb38004e30558eb71f1d4f50836","tarball":"https://registry.npmjs.org/mongodb-scope-client/-/mongodb-scope-client-0.10.0.tgz","integrity":"sha512-EIZFVoZ50EbvOcjzIvMoyPEILKuHLgn/6gkkQQ+th7JoU7/61Wp+kXosrnQLcwvS4IPZ+lVzFCCg5iSUf5d5MQ==","signatures":[{"sig":"MEQCIBaVvaNzOgF453rbTiPUSOOS1KV5dtMaTzr+V6XgHs2mAiAnhfgVnSaGPIJGiXghKZHWN3VIFeTqLfWdSWFAe0qapQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"cdf5aaff64eedeb38004e30558eb71f1d4f50836","gitHead":"5deb02a06ec91677faec5c32f1bfcd3428712968","scripts":{"ci":"npm test","fmt":"mongodb-js-fmt lib/*.js test/*.js","docs":"gulp docs","test":"mocha --reporter mocha-evergreen-reporter || npm run mandatory-cleanup","check":"mongodb-js-precommit","start":"zuul --local 3001 --open -- test/*.test.js","pretest":"node bin/start-server.js","posttest":"npm run mandatory-cleanup","prestart":"node bin/start-server.js","poststart":"npm run mandatory-cleanup","mandatory-cleanup":"node bin/stop-server.js"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"precommit":["check"],"repository":{"url":"git://github.com/mongodb-js/scope-client.git","type":"git"},"_npmVersion":"3.3.12","description":"A client for mongodb-scope-server that works in the browser or a server.","directories":{},"_nodeVersion":"5.4.1","dependencies":{"raf":"^3.2.0","async":"^1.5.2","debug":"^2.2.0","mongodb-ns":"^1.0.3","superagent":"^1.7.2","lodash.omit":"^3.1.0","event-stream":"^3.3.2","ampersand-model":"^6.0.2","lodash.trimright":"^3.0.2","socket.io-client":"^1.4.5","socket.io-stream":"0.9.0","mongodb-extended-json":"^1.6.2","mongodb-connection-model":"^4.0.0"},"devDependencies":{"del":"^2.2.0","dox":"^0.8.0","bson":"^0.4.21","gulp":"^3.9.1","zuul":"^3.9.0","mocha":"^2.4.4","backbone":"^1.2.3","through2":"^2.0.0","gulp-util":"^3.0.7","handlebars":"^4.0.5","pre-commit":"^1.1.2","lodash.range":"^3.0.1","mongodb-js-fmt":"^0.0.3","mongodb-runner":"^3.1.15","mongodb-datasets":"^0.1.5","mongodb-js-precommit":"^0.2.8","mongodb-scope-server":"^0.12.2","eslint-config-mongodb-js":"^1.0.6","mocha-evergreen-reporter":"0.0.7"},"dependency-check":{"ignore":["mongodb-datasets"]},"_npmOperationalInternal":{"tmp":"tmp/mongodb-scope-client-0.10.0.tgz_1457038469277_0.14066142635419965","host":"packages-13-west.internal.npmjs.com"}},"0.10.1":{"name":"mongodb-scope-client","version":"0.10.1","author":{"url":"http://imlucas.com","name":"Lucas Hrabovsky","email":"lucas@mongodb.com"},"license":"Apache-2.0","_id":"mongodb-scope-client@0.10.1","maintainers":[{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},{"name":"kangas","email":"kangas@gmail.com"},{"name":"machyne","email":"mcotter222@gmail.com"},{"name":"mongodb-js-user","email":"lucas.hrabovsky+mongodb-js@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"}],"homepage":"http://github.com/mongodb-js/scope-client","bugs":{"url":"https://github.com/mongodb-js/scope-client/issues"},"dist":{"shasum":"b4f09d536757308ed61569b16943a4b16beb838e","tarball":"https://registry.npmjs.org/mongodb-scope-client/-/mongodb-scope-client-0.10.1.tgz","integrity":"sha512-5JpE6mYfd4xfL9Nfb+iQTDeLRoKTkhrHZW5qP3JkfIaa+gxJCAdnxt4mmNwvJv8c1OUmSCOnwcDzpqlmr4X6HQ==","signatures":[{"sig":"MEYCIQCg29G85DyqLlXnrmuIgTwDL9xW3y3ahqNF2HrYl+BSRAIhAOfCvArVIiPgukNHlYtQH3WgMWGsot1oDH14WGl9W0so","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"b4f09d536757308ed61569b16943a4b16beb838e","gitHead":"a48c99483d3a8926d5b3f63f6adf990b22aa5afd","scripts":{"ci":"npm test","fmt":"mongodb-js-fmt lib/*.js test/*.js","docs":"gulp docs","test":"mocha --reporter mocha-evergreen-reporter || npm run mandatory-cleanup","check":"mongodb-js-precommit","start":"zuul --local 3001 --open -- test/*.test.js","pretest":"node bin/start-server.js","posttest":"npm run mandatory-cleanup","prestart":"node bin/start-server.js","poststart":"npm run mandatory-cleanup","mandatory-cleanup":"node bin/stop-server.js"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"precommit":["check"],"repository":{"url":"git://github.com/mongodb-js/scope-client.git","type":"git"},"_npmVersion":"3.3.12","description":"A client for mongodb-scope-server that works in the browser or a server.","directories":{},"_nodeVersion":"5.4.1","dependencies":{"raf":"^3.2.0","async":"^1.5.2","debug":"^2.2.0","mongodb-ns":"^1.0.3","superagent":"^1.7.2","lodash.omit":"^3.1.0","event-stream":"^3.3.2","ampersand-model":"^6.0.2","ampersand-state":"4.8.2","lodash.trimright":"^3.0.2","socket.io-client":"^1.4.5","socket.io-stream":"0.9.0","mongodb-extended-json":"^1.6.2","mongodb-connection-model":"^4.0.0"},"devDependencies":{"del":"^2.2.0","dox":"^0.8.0","bson":"^0.4.21","gulp":"^3.9.1","zuul":"^3.9.0","mocha":"^2.4.4","backbone":"^1.2.3","through2":"^2.0.0","gulp-util":"^3.0.7","handlebars":"^4.0.5","pre-commit":"^1.1.2","lodash.range":"^3.0.1","mongodb-js-fmt":"^0.0.3","mongodb-runner":"^3.1.15","mongodb-datasets":"^0.1.5","mongodb-js-precommit":"^0.2.8","mongodb-scope-server":"^0.12.2","eslint-config-mongodb-js":"^1.0.6","mocha-evergreen-reporter":"0.0.7"},"dependency-check":{"ignore":["mongodb-datasets"]},"_npmOperationalInternal":{"tmp":"tmp/mongodb-scope-client-0.10.1.tgz_1457041696095_0.8574929561000317","host":"packages-12-west.internal.npmjs.com"}},"0.10.2":{"name":"mongodb-scope-client","version":"0.10.2","author":{"url":"http://imlucas.com","name":"Lucas Hrabovsky","email":"lucas@mongodb.com"},"license":"Apache-2.0","_id":"mongodb-scope-client@0.10.2","maintainers":[{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},{"name":"kangas","email":"kangas@gmail.com"},{"name":"machyne","email":"mcotter222@gmail.com"},{"name":"mongodb-js-user","email":"lucas.hrabovsky+mongodb-js@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"}],"homepage":"http://github.com/mongodb-js/scope-client","bugs":{"url":"https://github.com/mongodb-js/scope-client/issues"},"dist":{"shasum":"6ac0cb0a4c66ffaabfb9f466f6cb9416ff0ba045","tarball":"https://registry.npmjs.org/mongodb-scope-client/-/mongodb-scope-client-0.10.2.tgz","integrity":"sha512-pgPjKzpaxT3XwqLH5rvZYBoMA/t9oqpgUQItDK2A9IXtOF8c9/ABV73UYVNQ+NvkyTOyQkZe4ui+qxVVjbt9Aw==","signatures":[{"sig":"MEQCIAYMXVPOf1Et/SwU62i7sXj2pAKvzwplUWUJwrxGy6VWAiABg/kDs0hZhDSOgF9cVOvRt1R2LFrBU62VBbSQGxQu2A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"6ac0cb0a4c66ffaabfb9f466f6cb9416ff0ba045","gitHead":"b02e1e9ea0a9e923bba085faa9d978f0c0e122c3","scripts":{"ci":"npm test","fmt":"mongodb-js-fmt","docs":"gulp docs","test":"npm run start-server && mocha || npm run stop-server","check":"mongodb-js-precommit","start":"zuul --local 3001 --open -- test/*.test.js","prestart":"npm run start-server","poststart":"npm run start-server","stop-server":"node bin/stop-server.js","ci-evergreen":"npm run start-server && mocha --reporter mocha-evergreen-reporter || npm run stop-server","start-server":"node bin/start-server.js","test-electron":"npm run start-server && electron-mocha || npm run stop-server"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"precommit":["check"],"repository":{"url":"git://github.com/mongodb-js/scope-client.git","type":"git"},"_npmVersion":"3.3.12","description":"A client for mongodb-scope-server that works in the browser or a server.","directories":{},"_nodeVersion":"5.4.1","dependencies":{"raf":"^3.2.0","async":"^1.5.2","debug":"^2.2.0","mongodb-ns":"^1.0.3","superagent":"^1.7.2","lodash.omit":"^3.1.0","event-stream":"^3.3.2","ampersand-model":"^6.0.2","ampersand-state":"4.8.2","lodash.trimright":"^3.0.2","socket.io-client":"^1.4.5","socket.io-stream":"0.9.0","mongodb-extended-json":"^1.6.3","mongodb-connection-model":"^4.0.0"},"devDependencies":{"del":"^2.2.0","dox":"^0.8.0","bson":"^0.4.21","gulp":"^3.9.1","zuul":"^3.9.0","mocha":"^2.4.4","backbone":"^1.2.3","through2":"^2.0.0","gulp-util":"^3.0.7","handlebars":"^4.0.5","pre-commit":"^1.1.2","lodash.range":"^3.0.1","electron-mocha":"^0.8.0","mongodb-js-fmt":"^0.0.3","mongodb-runner":"^3.1.15","mongodb-datasets":"^0.1.5","electron-prebuilt":"^0.36.9","mongodb-js-precommit":"^0.2.8","mongodb-scope-server":"^0.14.1","eslint-config-mongodb-js":"^1.0.6","mocha-evergreen-reporter":"^0.0.7"},"dependency-check":{"ignore":["mongodb-datasets"]},"_npmOperationalInternal":{"tmp":"tmp/mongodb-scope-client-0.10.2.tgz_1457146843489_0.19429818773642182","host":"packages-12-west.internal.npmjs.com"}},"0.11.0":{"name":"mongodb-scope-client","version":"0.11.0","author":{"url":"http://imlucas.com","name":"Lucas Hrabovsky","email":"lucas@mongodb.com"},"license":"Apache-2.0","_id":"mongodb-scope-client@0.11.0","maintainers":[{"name":"durran","email":"durran@gmail.com"},{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},{"name":"kangas","email":"kangas@gmail.com"},{"name":"machyne","email":"mcotter222@gmail.com"},{"name":"mongodb-js-user","email":"lucas.hrabovsky+mongodb-js@10gen.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"}],"homepage":"http://github.com/mongodb-js/scope-client","bugs":{"url":"https://github.com/mongodb-js/scope-client/issues"},"dist":{"shasum":"b74be7d5e54421b58286438607b7926553ccd050","tarball":"https://registry.npmjs.org/mongodb-scope-client/-/mongodb-scope-client-0.11.0.tgz","integrity":"sha512-etS7mkGpxrYee03xPyzsuQF/w1iw0+0C6irEb7wOZcenNWHWeDS4u1DKyMhJeo6Way7PmiKENn9C6sbGfY9+SQ==","signatures":[{"sig":"MEUCIQCEsYfyW3mOY6CTmCiiSqYw6qXCKuNvBeI3AUnJRNSkOQIgdSlxi6O6b/ovfVGuCXXOkD4jFThtK9p/hBmh4pTGCE4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"b74be7d5e54421b58286438607b7926553ccd050","gitHead":"ce215b478c2eb76e4a70b6562806eb6b1d16ab42","scripts":{"ci":"npm test","fmt":"mongodb-js-fmt","docs":"gulp docs","test":"npm run start-server && mocha || npm run stop-server","check":"mongodb-js-precommit","start":"zuul --local 3001 --open -- test/*.test.js","prestart":"npm run start-server","poststart":"npm run start-server","stop-server":"node bin/stop-server.js","ci-evergreen":"npm run start-server && mocha --reporter mocha-evergreen-reporter || npm run stop-server","start-server":"node bin/start-server.js","test-electron":"npm run start-server && electron-mocha || npm run stop-server"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"precommit":["check"],"repository":{"url":"git://github.com/mongodb-js/scope-client.git","type":"git"},"_npmVersion":"3.3.12","description":"A client for mongodb-scope-server that works in the browser or a server.","directories":{},"_nodeVersion":"5.4.1","dependencies":{"raf":"^3.2.0","async":"^1.5.2","debug":"^2.2.0","mongodb-ns":"^1.0.3","superagent":"^1.7.2","lodash.omit":"^3.1.0","mississippi":"^1.2.0","event-stream":"^3.3.2","ampersand-model":"^6.0.2","ampersand-state":"4.8.2","lodash.trimright":"^3.0.2","socket.io-client":"^1.4.5","socket.io-stream":"0.9.0","mongodb-extended-json":"^1.6.3","mongodb-connection-model":"^4.0.0"},"devDependencies":{"del":"^2.2.0","dox":"^0.8.0","bson":"^0.4.21","gulp":"^3.9.1","zuul":"^3.9.0","mocha":"^2.4.4","backbone":"^1.2.3","through2":"^2.0.0","gulp-util":"^3.0.7","handlebars":"^4.0.5","pre-commit":"^1.1.2","lodash.range":"^3.0.1","electron-mocha":"^0.8.0","mongodb-js-fmt":"^0.0.3","mongodb-runner":"^3.1.15","mongodb-datasets":"^0.1.5","electron-prebuilt":"^0.36.9","mongodb-js-precommit":"^0.2.8","mongodb-scope-server":"^0.14.1","eslint-config-mongodb-js":"^1.0.6","mocha-evergreen-reporter":"^0.0.7"},"dependency-check":{"ignore":["mongodb-datasets"]},"_npmOperationalInternal":{"tmp":"tmp/mongodb-scope-client-0.11.0.tgz_1457305664791_0.5056709779892117","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2016-01-07T18:49:32.009Z","modified":"2026-07-15T15:36:19.761Z","0.8.0":"2016-01-07T18:49:32.009Z","0.10.0":"2016-03-03T20:54:32.092Z","0.10.1":"2016-03-03T21:48:19.209Z","0.10.2":"2016-03-05T03:00:46.730Z","0.11.0":"2016-03-06T23:07:48.091Z"},"bugs":{"url":"https://github.com/mongodb-js/scope-client/issues"},"author":{"url":"http://imlucas.com","name":"Lucas Hrabovsky","email":"lucas@mongodb.com"},"license":"Apache-2.0","homepage":"http://github.com/mongodb-js/scope-client","repository":{"url":"git://github.com/mongodb-js/scope-client.git","type":"git"},"description":"A client for mongodb-scope-server that works in the browser or a server.","maintainers":[{"email":"satya@mongodb.com","name":"satyasinha"},{"email":"kristina.stefanova@mongodb.com","name":"kristina.stefano"},{"email":"nathan.smyth@10gen.com","name":"jarjee"},{"email":"iteng@mongodb.com","name":"devtoolsbot"},{"email":"james.wang@mongodb.com","name":"mongo-j"},{"email":"neal.beeken@mongodb.com","name":"nbbeeken"},{"email":"dbx-node@mongodb.com","name":"dbx-node"},{"email":"devtools-npm-user@mongodb.com","name":"devtools-npm-user"},{"email":"hrabovsky.lucas@gmail.com","name":"imlucas"}],"readme":"# mongodb-scope-client [![][travis_img]][travis_url] [![][npm_img]][npm_url] [![][inch_img]][inch_url]\n\n> The client to talk to [mongodb-scope-server][server] from node.js or the browser.\n\nWant to see what it can do? [Check out `./examples`][examples].\n\n```\nnpm install --save mongodb-scope-client\n```\n\n## API\n\n```javascript\nvar scope = require('mongodb-scope-client')([endpoint], [connection]);\n```\n\n#### Parameters\n\n- `endpoint` (optional, String) ... Where the server is running [Default `http://localhost:29017`].\n- `connection` (optional, Object|mongodb-connection-model) ... [MongoDB connection][connection-model] options [Default `{}`].\n\n### resource\n\n#### scope.instance (opts, fn)\n\n![production](http://b.repl.ca/v1/stability-production-green.png)\n\nGet details of the instance you're currently connected to\nlike database_names, results of the hostInfo and buildInfo mongo commands.\n\n\n##### Parameters\n\n- `opts` (optional, Object) ... Placeholder for future options\n- `fn` (optional, Function) ... A response callback `(err, data)`\n\n\n#### scope.deployments (opts, fn)\n\n![production](http://b.repl.ca/v1/stability-production-green.png)\n\nList all deployments this scout-server instance has connected to.\n\n\n##### Parameters\n\n- `opts` (optional, Object) ... Placeholder for future options.\n- `fn` (optional, Function) ... A response callback `(err, data)`.\n\n\n#### scope.database (name, opts, fn)\n\n![production](http://b.repl.ca/v1/stability-production-green.png)\n\nList collection names and stats.\n\n\n##### Parameters\n\n- `name` (required, String) ... - The database name.\n- `opts` (optional, Object) ... Placeholder for future options.\n- `fn` (optional, Function) ... A response callback `(err, data)`.\n\n\n#### scope.collection (ns, opts, fn)\n\n![production](http://b.repl.ca/v1/stability-production-green.png)\n\nCollection stats\n\n\n##### Parameters\n\n- `ns` (required, String) ... A namespace string, eg `#{database_name}.#{collection_name}`\n- `opts` (optional, Object) ... Placeholder for future options\n- `fn` (optional, Function) ... A response callback `(err, data)`\n\n\n#### scope.index (ns, name, opts, fn)\n\n![development](http://b.repl.ca/v1/stability-development-yellow.png)\n\nIndex details\n\n\n##### Parameters\n\n- `ns` (required, String) ... A namespace string, eg `#{database_name}.#{collection_name}`\n- `name` (required, String) ... The index name\n- `opts` (optional, Object) ... Placeholder for future options\n- `fn` (optional, Function) ... A response callback `(err, data)`\n\n\n#### scope.document (ns, _id, opts, fn)\n\n![development](http://b.repl.ca/v1/stability-development-yellow.png)\n\nWork with a single document.\n\n\n##### Parameters\n\n- `ns` (required, String) ... A namespace string, eg `#{database_name}.#{collection_name}`\n- `_id` (required, String) ... The document's `_id` value\n- `opts` (optional, Object) ... Placeholder for future options\n- `fn` (optional, Function) ... A response callback `(err, data)`\n\n\n### query\n\n#### scope.find (ns, opts, fn)\n\n![production](http://b.repl.ca/v1/stability-production-green.png)\n\nRun a query on `ns`.\n\n\n##### Parameters\n\n- `ns` (required, String) ... - A namespace string, eg `#{database_name}.#{collection_name}`\n- `opts` (optional, Object) ... - Placeholder for future options\n- `fn` (optional, Function) ... - A response callback `(err, data)`\n\n\n#### scope.count (ns, opts, fn)\n\n![production](http://b.repl.ca/v1/stability-production-green.png)\n\nRun a count on `ns`.\n\n\n##### Parameters\n\n- `ns` (required, String) ... A namespace string, eg `#{database_name}.#{collection_name}`\n- `opts` (optional, Object) ... - Options\n- `fn` (optional, Function) ... A response callback `(err, data)`\n\n\n#### scope.aggregate (ns, pipeline, opts, fn)\n\n![development](http://b.repl.ca/v1/stability-development-yellow.png)\n\nRun an aggregation pipeline on `ns`.\n\n##### Examples\n\n- [chart it](d)\n\n##### Parameters\n\n- `ns` (required, String) ... A namespace string, eg `#{database_name}.#{collection_name}`\n- `pipeline` (required, Array) ... - Agg pipeline to execute.\n- `opts` (optional, Object) ... - Options\n- `fn` (required, Function) ... A response callback `(err, data)`\n\n\n#### scope.sample (ns, opts, fn)\n\n![development](http://b.repl.ca/v1/stability-development-yellow.png)\n\nUse [resevoir sampling](http://en.wikipedia.org/wiki/Reservoir_sampling) to\nget a slice of documents from a collection efficiently.\n\n\n##### Parameters\n\n- `ns` (required, String) ... - A namespace string, eg `#{database_name}.#{collection_name}`\n- `opts` (optional, Object) ... - Options\n- `fn` (required, Function) ... - A response callback `(err, data)`\n\n\n#### scope.random (ns, opts, fn)\n\n![development](http://b.repl.ca/v1/stability-development-yellow.png)\n\nConvenience to get 1 document via `Client.prototype.sample`.\n\n\n##### Parameters\n\n- `ns` (required, String) ... - A namespace string, eg `#{database_name}.#{collection_name}`\n- `opts` (optional, Object) ... - Options\n- `fn` (required, Function) ... - A response callback `(err, data)`\n\n\n\n[travis_img]: https://img.shields.io/travis/mongodb-js/scope-client.svg?style=flat-square\n[travis_url]: https://travis-ci.org/mongodb-js/scope-client\n[npm_img]: https://img.shields.io/npm/v/mongodb-scope-client.svg?style=flat-square\n[npm_url]: https://www.npmjs.org/package/mongodb-scope-client\n[inch_img]: http://inch-ci.org/github/mongodb-js/scope-client.svg?branch=master\n[inch_url]: http://inch-ci.org/github/mongodb-js/scope-client\n[examples]: https://github.com/mongodb-js/scope-client/tree/master/examples\n[server]: https://github.com/mongodb-js/scope-server\n[connection-model]: https://github.com/mongodb-js/connection-model\n","readmeFilename":"README.md"}