Integration library built on top of MongoDB.AspNetCore.OData package to enable OData endpoints for MongoDB.
dotnet add package MongoDB.AspNetCore.OData
Simply follow the Getting Started with ASP.NET Core OData 8 guide, but use MongoEnableQuery
attribute instead of EnableQuery
whenever you are exposing IMongoQueryable
as OData endpoint.
Please also use MongoDB.AspNetCore.OData.Sample.WebApi as a sample.
Should you encounter any issue with the package, please create Jira ticket so we can investigate and improve the library.