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 2016/10/07 15:20:18 UTC
documentation commit: updated refs/heads/master to 5492d00
Repository: couchdb-documentation
Updated Branches:
refs/heads/master d306d1871 -> 5492d00bc
Describe use of '_selector' option for filter.
Add sub-heading fixes.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/commit/5492d00b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/tree/5492d00b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/diff/5492d00b
Branch: refs/heads/master
Commit: 5492d00bc3d47ab6a928f48633df87fc631f0b10
Parents: d306d18
Author: Adrian Warman <Ad...@uk.ibm.com>
Authored: Mon Sep 5 17:15:22 2016 +0100
Committer: Nick Vatamaniuc <va...@apache.org>
Committed: Fri Oct 7 11:19:33 2016 -0400
----------------------------------------------------------------------
src/api/database/changes.rst | 45 +++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/5492d00b/src/api/database/changes.rst
----------------------------------------------------------------------
diff --git a/src/api/database/changes.rst b/src/api/database/changes.rst
index fde4077..2ff1bc3 100644
--- a/src/api/database/changes.rst
+++ b/src/api/database/changes.rst
@@ -543,6 +543,51 @@ request object.
]
}
+.. _changes/filter/selector/missing:
+
+Missing selector
+################
+
+If the selector object is missing from the request body,
+the error message is similar to the following example:
+
+.. code-block:: json
+
+ {
+ "error": "bad request",
+ "reason": "Selector must be specified in POST payload"
+ }
+
+.. _changes/filter/selector/invalidjson:
+
+Not a valid JSON object
+#######################
+
+If the selector object is not a well-formed JSON object,
+the error message is similar to the following example:
+
+.. code-block:: json
+
+ {
+ "error": "bad request",
+ "reason": "Selector error: expected a JSON object"
+ }
+
+.. _changes/filter/selector/invalidselector:
+
+Not a valid selector
+####################
+
+If the selector object does not contain a valid selection expression,
+the error message is similar to the following example:
+
+.. code-block:: json
+
+ {
+ "error": "bad request",
+ "reason": "Selector error: expected a JSON object"
+ }
+
.. _changes/filter/design:
_design