Possible Duplicate:
Translate Queryable<T> back to IMongoQuery
I want to see queries that is constructed by linq in MongoDB. I have been checked documentations about profiling but i couldn't find an information about this. system.profile table does not provide information enough about executed queries.
For example
I want to see native NoSql MongoDb query that is constructed by below query.
var col = Queryable.Where(o => o.Id == id).Select(o => o.Definitions.Take(10));
I tried to get query text as suggested in forums like below
var queryText = (col as MongoQueryable<IEnumerable<Definition>>).GetMongoQuery().ToJson();
// queryText = "{ \"_id\" : ObjectId(\"503376c0e1e28f09449b64d6\") }"
As you have seen queryText is not query that i am looking for.
How can i see queries via official .net driver or MongoDB profiling tools ?