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

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

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

      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 Unassigned
            Reporter:
            charanreddy95 charan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: