MongoDB CRUD
In this post, we will look at, how we can perform CRUD operation on MongoDB Database.
Assumptions:
vutil is installed.
MongoDB connection is configured in the config.json file in vutil directory.
Base Test Case
First create a test case which will fire a HTTP request on vutil server to validate the database state:
CRUD Operations:
Insert Query
Insert query can be specified as shown in the following screenshot:
Find Query
Find query can be specified as shown in the following screenshot:Update Query
Update query can be specified as shown in the following screenshot:
Delete Query
Delete query can be specified as shown in the following screenshot: