Details
-
Bug
-
Resolution: Done
-
Major - P3
-
1.9.1
-
None
-
.NET 4.5
Description
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
Attachments
Issue Links
- depends on
-
CSHARP-601 Linq to Aggregation Framework
-
- Closed
-