Use aggregation
db.UserData.aggregate({$group:{_id:"$category", "maxValue":{$max:"$value"}}});
More Related Contents:
- MongoDB GridFs with C#, how to store files such as images?
- Aggregate $lookup with C#
- MongoDB .Net driver 2.0 Pull (remove element)
- Is there an “Explain Query” for MongoDB Linq?
- MongoDB and C#: Case insensitive search
- MongoDB C# Driver 2.0 – Update document
- Get _id of an inserted document in MongoDB?
- BsonSerializationException when serializing a Dictionary to BSON
- In sqlite I would do, But how in mongodb c#
- A timeout occured after 30000ms selecting a server using CompositeServerSelector
- How to use decimal type in MongoDB
- JSON.NET cast error when serializing Mongo ObjectId
- C# how to create an array of objects? [closed]
- How to convert a structure to a byte array in C#?
- Display image from database in asp mvc
- What is the difference between PreserveReferencesHandling and ReferenceLoopHandling in Json.Net?
- Command to close an application of console?
- Nice & universal way to convert List of items to Tree
- Better way to cast object to int
- Count number of Mondays in a given date range
- Select folder dialog WPF
- How to get mx records for a dns name with System.Net.DNS? [closed]
- “Nested foreach” vs “lambda/linq query” performance(LINQ-to-Objects) [closed]
- List array duplicates with count
- Broken TCP messages
- How to filter data using Entity Framework in a way that DataGridView be editable and context track changes?
- Can you use C++ DLLs in C# code in a UWP?
- Why is the control inaccessible due to its protection level?
- IEnumerable.Cast won’t work even if an explicit cast operator is defined?
- SHA1 hashing in SQLite: how?