create session added

This commit is contained in:
C
2022-11-22 18:28:29 +05:00
parent c3dedbc530
commit 33222ea5b0
13 changed files with 7127 additions and 77 deletions
+8 -8
View File
@@ -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