Uploaded image for project: 'Visual Studio'
  1. Visual Studio
  2. VS-59

Index Keys Wildcard Matching

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 1.1.0
    • Affects Version/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      var variable = "Vehicle";
        _ = Builders<Person>.IndexKeys.Wildcard(variable);
      

      For this code, instead of the expected MQL:

      
      { "variable.$**" : 1 }
      

      This MQL is generated:

      { "s__0.$**" : 1 }
      

      PR Link: https://github.com/mongodb/mongo-csharp-analyzer/pull/15

            Assignee:
            boris.dogadov@mongodb.com Boris Dogadov
            Reporter:
            ravi.raghavan@mongodb.com Ravi Raghavan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: