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

convert from json to c#

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: Json, Json.NET, Linq
    • Environment:
      visual studio

      how can i write the below code in c#. Thanks

       

      {
        $lookup:
       

      {     from: "temp",     localField: "BrandID",     foreignField: "BrandID",     as: "docs"   }

      },
      {$unwind: "$docs"},
      { $match:
       

      {     "BrandRef" : \{$in: ["ABC", "ABS", "ABU"]}

      ,
          "docs.BrandID" : {$in: [828.0, 33.0, 238.0]},
          "docs.firstName" : {$in: ["Bruce", "Asddss"]}
        }
      }

            Assignee:
            Unassigned Unassigned
            Reporter:
            arjun.blr1237 Arjun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: