Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1443

documentation of $in / $all is lacking

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            antoine Antoine Girbal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 32 weeks, 6 days ago