Open stefan1st opened 2 years ago
@stefan1st What's the 'ObjectId' definition? What's the "_service" used in the controller? Is it a mongoDB or any other database?
Can you share a repro for us to dig more?
@xuzhg
_service
private readonly IMongoRepository<GenericDocument> _repository;
public IQueryable<GenericDocument> GetAll()
{
return _repository.AsQueryable();
}
ObjectId is MongoDB.Bson.ObjectId https://docs.mongodb.com/manual/reference/method/ObjectId/
I will get back to you with a repro.
Thanks
@stefan1st Is it similar to this one? https://jira.mongodb.org/browse/CSHARP-3989
Mongo DB has a new Linq Provider that should actually support $select etc.
clientSettings.LinqProvider = LinqProvider.V3;
But in my case it does not work. If you have some Repro can you please also share it with Mongo?
OData response gets truncated when using query features.
Microsoft.AspNetCore.OData version 8.0.4
Without query parameters:
With select query parameter:
Startup.cs
DocumentsController
Model
What could be the problem?
Some of the links, that I've checked:
https://devblogs.microsoft.com/odata/routing-in-asp-net-core-8-0-preview/ https://jira.mongodb.org/browse/CSHARP-1771?focusedCommentId=4145551&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-4145551 https://www.learmoreseekmore.com/2021/07/intro-on-odata-v8-in-dotnet5-api.html