i want to "select col1 ,count(*) from table1 group by col1" in mongodb. how can i write?
i try to write this,but it's fail.
var query
= from e in collection.AsQueryable<table1>()
group e by e.col1 into g
select new {g.Key,g.Count()}
the driver is not suported the "group by ",how can i do,please