how to get all documents where Incident ID's are given in comma seperated

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Blocker - P1
    • None
    • Affects Version/s: 2.7.3
    • Component/s: LINQ
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi Team,

      I have a collection where i have incidents data in which if i pass the incident number more than 2 in comma separated, i want those documents into var variable.

      Tried the below code but it is not working:

      var filter = Builders<BsonDocument>.Filter.Eq("IncidentNumber", new[] { "INC12344444", "INC34455555" });

      var result = collection.Find(filter).ToList();

      Please give the right code.

       

      Thanks,

      G charan.

       

            Assignee:
            Unassigned
            Reporter:
            charan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: