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.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: Feature Request
    • Labels:
      None
    • Environment:
      software platform

      Description

      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..

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: