The "In" operator matches the whole element in the input array. So a query with "In" with "Contains" is not possible.

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.4.2
    • Component/s: Feature Request
    • None
    • Environment:
      software platform
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Please refer my question: ``Is there an option to perform the "In" operation on strings?`` for more details:
      https://jira.mongodb.org/browse/CSHARP-494

      There is no equivalent to this mongo query in c# driver to linq:
      db.Feeds.find({ShortDescription:{$in:[/sunil/, /raj/]}})

      The Predicatebuilder wraps the string content with double quotes, which affects the result. Please fix/ add this feature.

      Thanks..

              Assignee:
              Unassigned
              Reporter:
              Sunil Raj
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: