Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-495

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

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

      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 Unassigned
            Reporter:
            sunilrajkg Sunil Raj
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: