|
Looks like this can be done now with the extension method:
public static IMongoQueryable<TDocument> AsQueryable<TDocument>
|
this IMongoCollection<TDocument> collection,
|
AggregateOptions aggregateOptions = null)
|
|
|
Consider also an open ended option system that could be more easily extended. For example:
var query = collection.AsQueryable<T>()
|
.Where(x => ...)
|
.WithOption(LinqQueryOption.BatchSize(100))
|
.WithOption(LinqQueryOption.NoCursorTimeout)
|
.WithOption(LinqQueryOption.IndexHint(...));
|
|
|
Consider also what other options might need to be supported (e.g. NoCursorTimeout, ...).
|
Generated at Wed Feb 07 21:37:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.