Introduction Flashcards

1
Q

show dbs

A

show databases were created

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

cls

A

cleaer the shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

use <database></database>

A

switch to database with name <database> and if this database was not exist create one</database>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

db.collectionName.insertOne({ “name”: “ivan”, age: 26})

A

create a collection with name collectionName and insert one document in it with a unique id. this id created by mongodb automatically. qoutes around keys are not neccessary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

db.collectionName.find()

A

returns the documents inside the collection with name collectionName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

db.collectionName.find().pretty()

A

returns the documents inside the collection with name collectionName in a pretty represntation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

mongo drivers

A

if you want to use mongo inside your app that written in
a programming language such as javascript you should use
drivers and to know how to use it read documents there in
mongodb site

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

storage engine

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly