Advertisement
vvccs

ADS_7_COUCHDB

Oct 15th, 2024
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.78 KB | None | 0 0
  1. exp7
  2.  
  3. create database by clicking the Create Database
  4.  
  5. click create document and insert these
  6. 1.
  7. {
  8.   "_id": "emp001",
  9.   "_rev": "1-4925af87993caff1b00be1b60c71332c",
  10.   "dept": "Engineering",
  11.   "name": "John Doe",
  12.   "status": "Active"
  13. }
  14. 2.
  15. {
  16.   "_id": "emp002",
  17.   "_rev": "1-4585267c72159e424735a38988983169",
  18.   "dept": "Marketing",
  19.   "name": "Jane Smith",
  20.   "status": "Active"
  21. }
  22. 3.
  23. {
  24.   "_id": "emp003",
  25.   "_rev": "1-96594d82fd7b38820862522a67ea65ea",
  26.   "dept": "CSE",
  27.   "name": "Alice Johnson",
  28.   "status": "Inactive"
  29. }
  30. 4.
  31. {
  32.   "_id": "emp004",
  33.   "_rev": "1-dfcbef12fd7bf9ed79ba0c907fd08f92",
  34.   "dept": "Sales",
  35.   "name": "Bob Brown",
  36.   "status": "Active"
  37. }
  38.  
  39.  
  40. Now click Run a query with mango
  41. edit it
  42.  
  43. {
  44.   "selector": {
  45.     "dept": "Sales"
  46.   }
  47. }
  48.  
  49. Run query
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement