-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.9.1
-
Component/s: Linq
-
None
-
Environment:.NET 4.5
I have a OData controller with Get action which has a QueryableAttribute with set PageSize property:
[Queryable(PageSize=5000)]
public async Task<IHttpActionResult> Get([FromODataUri] Guid key)
repository.All() - returns MongoQueryable
when I make a GET request to my OData controller with following query:
?$expand=Attributes&$top=10
I get MongoDB.Driver.MongoQueryException exception with message:
Skip and Take may only be used in conjunction with each other and cannot be separated by other operations.
If I remove $top or $expand option from my request or remove PegeSize from QueryableAttribute then I get successful response
- depends on
-
CSHARP-601 Linq to Aggregation Framework
- Closed