Which characteristic apply to mongodb
true | false | |
---|---|---|
MongoDB is relational database |
[ ] | [x] |
Key–Value Store |
[ ] | [x] |
Document Database |
[x] | [ ] |
Scalable |
[x] | [ ] |
XML-style Document |
[ ] | [x] |
JSON-style Document |
[x] | [ ] |
Sorry... Try again
How do you install MongoDB?
yes | no | |
---|---|---|
npm install mongodb |
[ ] | [x] |
npm install mongodb -g |
[ ] | [x] |
apt-get install mongodb |
[x] | [ ] |
Sorry... Try again
How do you insert data into a MongoDB?
yes | no | |
---|---|---|
db.collection.insert({foo:'bar'}) |
[x] | [ ] |
INSERT INTO collection (foo) VALUES ('bar') |
[ ] | [x] |
put 'collection', 'row1', 'vi:foo', 'bar' |
[ ] | [x] |
Sorry... Try again
How do you get all data from a MongoDB?
yes | no | |
---|---|---|
SELECT * FROM collection |
[ ] | [x] |
db.collection.find() |
[x] | [ ] |
scan 'collection' |
[ ] | [x] |
Sorry... Try again