create session added
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
CHECKOUT_DATABASE:
|
||||
how dbs - show all dbs
|
||||
se some_name_db - set current db
|
||||
how collections - all collections of current db
|
||||
b.stats() - stats of DB
|
||||
b.users.stats() - some stats
|
||||
show dbs - show all dbs
|
||||
set some_name_db - set current db
|
||||
show collections - all collections of current db
|
||||
db.stats() - stats of DB
|
||||
db.users.stats() - some stats
|
||||
|
||||
ADD_DATA:
|
||||
nsertOne() - insert document to collection
|
||||
nsertMany()
|
||||
insertOne() - insert document to collection
|
||||
insertMany()
|
||||
|
||||
EXAMPLE:
|
||||
db.collection_name.insertOne({"name":"Tom", "age": 28, languages: ["english":"spanish"]})
|
||||
@@ -25,7 +25,7 @@ WITH_FILE: example.js AND CONTENT
|
||||
load("example.js") - this command will load previous example in db
|
||||
|
||||
DOCUMENT_FILTER:
|
||||
b.collection_name.find() - show all documents in colleciton
|
||||
db.collection_name.find() - show all documents in colleciton
|
||||
|
||||
EXAMPLES:
|
||||
db.collection_name.find({name: "Tom"}) - find documents with names
|
||||
|
||||
Reference in New Issue
Block a user