summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authoradam <adamansky@gmail.com>2012-12-25 00:00:45 +0700
committeradam <adamansky@gmail.com>2012-12-25 00:00:45 +0700
commitef42fe6d3024e568379db2cd41e09171cb0b1b98 (patch)
tree0bc8d68fe8484622c6b2b2260333a2dae5104ada /node
parentdd63c6c9b9c65c00d943a8b17ff54567bc6adea1 (diff)
downloadejdb-ef42fe6d3024e568379db2cd41e09171cb0b1b98.tar.gz
ejdb-ef42fe6d3024e568379db2cd41e09171cb0b1b98.tar.bz2
ejdb-ef42fe6d3024e568379db2cd41e09171cb0b1b98.zip
#13 done
Diffstat (limited to 'node')
-rw-r--r--node/ejdb.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/node/ejdb.js b/node/ejdb.js
index e2db70a..66abc00 100644
--- a/node/ejdb.js
+++ b/node/ejdb.js
@@ -286,6 +286,9 @@ function parseQueryArgs(args) {
* icase matching with '$in' operation:
* - {'name' : {'$icase' : {'$in' : ['tHéâtre - театр', 'heLLo WorlD']}}}
* For case insensitive matching you can create special type of string index.
+ * - $elemMatch The $elemMatch operator matches more than one component within an array element.
+ * - { array: { $elemMatch: { value1 : 1, value2 : { $gt: 1 } } } }
+ * Restriction: only one $elemMatch allowed in context of one array field.
*
* - Queries can be used to update records:
*
@@ -301,6 +304,7 @@ function parseQueryArgs(args) {
* $pull Atomically removes all occurrences of value from field, if field is an array.
* - {.., '$pull' : {'json.field.path' : val1, 'json.field.pathN' : valN, ...}}
*
+ *
* NOTE: It is better to execute update queries with `$onlycount=true` hint flag
* or use the special `update()` method to avoid unnecessarily data fetching.
* NOTE: Negate operations: $not and $nin not using indexes