|
Microsoft.AspNetCore.OData: 8.0.12
MongoDB.Driver: 2.19.2
MongoDB.Entities: 22.0.0
I am using MongoDB to create Odata service.
Here are my API and entity object


The issue currently while using
https://localhost:7119/odata/Supplier?select=Name
select for mongo db collection. It is throwing an error for mongo db. I am not sure is a mongo db package issue or if something needs to configure for OData.
BsonSerializationException: Type Microsoft.OData.Edm.EdmModel is not configured as a type that is allowed to be serialized for this instance of ObjectSerializer.

|