Skip to content

Commit

Permalink
Docs: Fix example code in Partitioned Databases
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahuili authored and nickva committed Jan 24, 2023
1 parent 262e4d1 commit e5f6c58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/docs/src/partitioned-dbs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,11 @@ After uploading our design document, we can try out a partitioned query:
}
}
}
shell> $ curl -X POST -H "Content-Type: application/json" http://127.0.0.1:5984/my_new_db -d @ddoc2.json
shell> $ curl -X POST -H "Content-Type: application/json" http://127.0.0.1:5984/my_new_db -d @ddoc.json
{
"ok": true,
"id": "_design/all_sensors",
"rev": "1-4a8188d80fab277fccf57bdd7154dec1"
"id": "_design/sensor-readings",
"rev": "1-13859808da293bd72fde3b31be97372a"
}
shell> curl http://127.0.0.1:5984/my_new_db/_partition/sensor-260/_design/sensor-readings/_view/by_sensor
{"total_rows":4,"offset":0,"rows":[
Expand Down

0 comments on commit e5f6c58

Please sign in to comment.