MongoDB Basic and CRUD Operations

MongoDB Basic and CRUD Operations

MongoDB 02-09-2022 Saheb Sutradhar

MongoDB Basic and CRUD Operations

 

Create Read Update Delete  These all operations in short we call CRUD Operartions.

Create Operation: 

insertOne( {data} , options )
insertMany( [data] , options )

Read Operation:

find( filter , options)
findOne( filter , options )

Update Operation:

updateOne( filter , data , options )
updateMany( filter , data , options )

Delete Option:

delete( filter , options)
deleteOne( filter , options )