Index Keys Wildcard Matching

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Unknown
    • 1.1.0
    • Affects Version/s: None
    • 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
            Reporter:
            Ravi Raghavan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: