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 2017/03/08 01:40:29 UTC

[1/3] documentation commit: updated refs/heads/master to d57d218

Repository: couchdb-documentation
Updated Branches:
  refs/heads/master 54e5a463d -> d57d2182d


Fix typo in `$all` and `$elemMatch` selector doc


Project: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/commit/fb6e897e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/tree/fb6e897e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/diff/fb6e897e

Branch: refs/heads/master
Commit: fb6e897ec189fcecdc6a6dd54d895252e26e44e1
Parents: 8ab379f
Author: Lucas Satabin <lu...@gnieh.org>
Authored: Sat Feb 11 17:12:43 2017 +0100
Committer: Nick Vatamaniuc <va...@apache.org>
Committed: Tue Mar 7 20:35:28 2017 -0500

----------------------------------------------------------------------
 src/api/database/find.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/fb6e897e/src/api/database/find.rst
----------------------------------------------------------------------
diff --git a/src/api/database/find.rst b/src/api/database/find.rst
index 53ab24c..8920f2b 100644
--- a/src/api/database/find.rst
+++ b/src/api/database/find.rst
@@ -441,7 +441,7 @@ example used with an index on the field ``"year"``:
 **The ``$all`` operator**
 
 The ``$all`` operator matches an array value if it contains all the elements of
-the argument array. Below is an example used with used with the primary index
+the argument array. Below is an example used with the primary index
 (``_all_docs``):
 
     .. code-block:: javascript
@@ -461,7 +461,7 @@ the argument array. Below is an example used with used with the primary index
 
 The ``$elemMatch`` operator matches and returns all documents that contain an
 array field with at least one element matching the supplied query criteria.
-Below is an example used with used with the primary index (``_all_docs``):
+Below is an example used with the primary index (``_all_docs``):
 
     .. code-block:: javascript
 


[2/3] documentation commit: updated refs/heads/master to d57d218

Posted by va...@apache.org.
Add documentation for the `$allMatch` selector


Project: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/commit/8ab379f3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/tree/8ab379f3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/diff/8ab379f3

Branch: refs/heads/master
Commit: 8ab379f333ff43505ca74131fddd82397478bbf3
Parents: 54e5a46
Author: Lucas Satabin <lu...@gnieh.org>
Authored: Sat Feb 11 17:11:53 2017 +0100
Committer: Nick Vatamaniuc <va...@apache.org>
Committed: Tue Mar 7 20:35:28 2017 -0500

----------------------------------------------------------------------
 src/api/database/find.rst | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/8ab379f3/src/api/database/find.rst
----------------------------------------------------------------------
diff --git a/src/api/database/find.rst b/src/api/database/find.rst
index 428c5b7..53ab24c 100644
--- a/src/api/database/find.rst
+++ b/src/api/database/find.rst
@@ -319,8 +319,9 @@ Combination Operators
 ---------------------
 
 Combination operators are used to combine selectors. In addition to the common
-boolean operators found in most programming languages, there are two combination
-operators (``$all`` and ``$elemMatch``) that help you work with JSON arrays.
+boolean operators found in most programming languages, there are three
+combination operators (``$all``, ``$elemMatch``, and ``$allMatch``) that help
+you work with JSON arrays.
 
 A combination operator takes a single argument. The argument is either another
 selector, or an array of selectors.
@@ -347,6 +348,10 @@ The list of combination operators:
 |                |          | array field with at least one element that       |
 |                |          | matches all the specified query criteria.        |
 +----------------+----------+--------------------------------------------------+
+| ``$allMatch``  | Selector | Matches and returns all documents that contain an|
+|                |          | array field with all its elements matching all   |
+|                |          | the specified query criteria.                    |
++----------------+----------+--------------------------------------------------+
 
 .. _find/and:
 
@@ -469,6 +474,25 @@ Below is an example used with used with the primary index (``_all_docs``):
             }
         }
 
+.. _find/allmatch:
+
+**The ``$allMatch`` operator**
+
+The ``$allMatch`` operator matches and returns all documents that contain an
+array field with all its elements matching the supplied query criteria. Below
+is an example used with the primary index (``_all_docs``):
+
+    .. code-block:: javascript
+
+        {
+            "_id": { "$gt": null },
+            "genre": {
+                "$allMatch": {
+                    "$eq": "Horror"
+                }
+            }
+        }
+
 .. _find/condition-operators:
 
 Condition Operators


[3/3] documentation commit: updated refs/heads/master to d57d218

Posted by va...@apache.org.
Merge branch 'pr/101'

Closes #101


Project: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/commit/d57d2182
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/tree/d57d2182
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/diff/d57d2182

Branch: refs/heads/master
Commit: d57d2182d2bdb200b79a9827a0843546f188180a
Parents: 54e5a46 fb6e897
Author: Nick Vatamaniuc <va...@apache.org>
Authored: Tue Mar 7 20:40:15 2017 -0500
Committer: Nick Vatamaniuc <va...@apache.org>
Committed: Tue Mar 7 20:40:15 2017 -0500

----------------------------------------------------------------------
 src/api/database/find.rst | 32 ++++++++++++++++++++++++++++----
 1 file changed, 28 insertions(+), 4 deletions(-)
----------------------------------------------------------------------