Monday, 12 June 2017

02.06.2017.

Friday.

 

 

Nodejs + Mongodb

1)



C:\Users\Your Name>node demo_create_mongo_db.js

 Database created!

 2)
Creating a Table

 

C:\Users\Your Name>node demo_create_mongo_table.js 

Table created!




3)
Insert Into Table

 

 

 C:\Users\Your Name>node demo_mongodb_insert.js

 1 record inserted


4)
Select One





 C:\Users\Your Name>node demo_mongodb_findone.js

 Company Inc.


5)
Filter the Result




 C:\Users\Your Name>node demo_mongodb_query.js

[
  { _id: 58fdbf5c0ef8a50b4cdd9a8e , name: 'Ben', address: 'Park Lane 38' }
]

 

 

6)
Sort the Result




 C:\Users\Your Name>node demo_sort.js


 7)
Delete Record






 C:\Users\Your Name>node demo_remove.js
 1 record(s) deleted


 8)
Update Document





 C:\Users\Your Name>node demo_update.js
 1 record updated




No comments:

Post a Comment

Machine Learning Annotation Introduction

Data annotation in Machine Learning is the process of annotating/ labeling data to categorize the dataset to identify by ML models. It can b...