This might be very simple, however I am having a hard time figuring it out:
I have a List<Tuple<String, String>>
that contains a list of products that I need to search for, and I would like to get all documents of all products that is represented in that list in one request.
Item1
is the SKU of the product, but because there can be duplicate SKU's, i also have Item2
which contains which SupplierId it should look for.
My challenge is to build the Query with the MongoDB C# Driver, to get the data out, anyone that can help?
I am using the new 2.3.0 driver version, which doesn't have much exsiting help on this subject.
Here is the code I have so far:
var collection = _database.GetCollection<StockDoc>("stock");
var result = collection.Find().ToListAsync().Result;