[DOCS-1443] documentation of $in / $all is lacking Created: 25/Apr/13  Updated: 04/Oct/13  Resolved: 04/Oct/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Antoine Girbal Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 19 weeks, 5 days ago

 Description   

The documentation for $in/$all only mentions that it works with straight values:
http://docs.mongodb.org/manual/reference/operator/in/#op._S_in
http://docs.mongodb.org/manual/reference/operator/all/#op._S_all

It seems to work fine with $elemMatch which is a very common use case, e.g.:
http://stackoverflow.com/questions/9824341/multiple-elemmatch-expressions-for-matching-array-values-using-all-in-mongodb

Also $in works with $regex at least.
We should list the operators that are accepted within the array of values.



 Comments   
Comment by auto [ 04/Oct/13 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-1443 add more examples to all and in operators
Branch: master
https://github.com/mongodb/docs/commit/1403fce53cdf92a148876c39f9d066998e4b1135

Generated at Thu Feb 08 07:41:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.