summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-01-15 20:32:11 -0700
committermo khan <mo@mokhan.ca>2015-01-15 20:32:11 -0700
commitaa40647cafa1ba66f74ac10ff9d01e8eb1de42eb (patch)
tree6fd6d1d9a15905dd2e76020b4e674a83f794dc4d
parent1d66f8a714296fc0692ffe0483a9676a94c527f7 (diff)
add answer.
-rw-r--r--assignment-1/answer15
1 files changed, 15 insertions, 0 deletions
diff --git a/assignment-1/answer b/assignment-1/answer
new file mode 100644
index 0000000..8806b4b
--- /dev/null
+++ b/assignment-1/answer
@@ -0,0 +1,15 @@
+λ mongo
+MongoDB shell version: 2.4.9
+connecting to: test
+test> show dbs
+local 0.078125GB
+m101 0.203125GB
+mongoapp_development 0.203125GB
+test> use m101
+switched to db m101
+m101> show collections
+hw1_1
+system.indexes
+m101> db['hw1_1'].find()
+{ "_id" : ObjectId("51e4524ef3651c651a42331c"), "answer" : "Hello from MongoDB!" }
+m101>