Skip to content

Instantly share code, notes, and snippets.

View aparnachaudhary's full-sized avatar

Aparna Chaudhary aparnachaudhary

View GitHub Profile
@aparnachaudhary
aparnachaudhary / our_setup_script.js
Created December 8, 2012 09:41 — forked from shussekaido/our_setup_script.js
MongoDB M102 week6 file
db = db.getSisterDB("config");
var mongosConn = db; // assume we connected to a mongos to get going
var res = null;
function check() {
printjson(res);
if( !res || !res.ok ) {
throw "check(): not ok, stopping";