You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2023/01/24 22:29:26 UTC
[couchdb] branch main updated: Docs: Fix example code in Partitioned Databases
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new e5f6c581b Docs: Fix example code in Partitioned Databases
e5f6c581b is described below
commit e5f6c581b0444e528efa3b41ca5889e4e5d4707c
Author: jiahuili <Ji...@ibm.com>
AuthorDate: Mon Jan 23 15:25:48 2023 -0600
Docs: Fix example code in Partitioned Databases
---
src/docs/src/partitioned-dbs/index.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/docs/src/partitioned-dbs/index.rst b/src/docs/src/partitioned-dbs/index.rst
index b1c9e90f8..695c7b91f 100644
--- a/src/docs/src/partitioned-dbs/index.rst
+++ b/src/docs/src/partitioned-dbs/index.rst
@@ -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":[