Skip to content

mongodb/mongo-aspnetcore-odata

Repository files navigation

MongoDB AspNetCore OData

Integration library built on top of MongoDB.AspNetCore.OData package to enable OData endpoints for MongoDB.

Package installation

dotnet add package MongoDB.AspNetCore.OData

Getting started

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.

Contribute

Should you encounter any issue with the package, please create Jira ticket so we can investigate and improve the library.