Swagger API cannot use method $expand and $select for latest ver

Saturday, April 13, 2024 1:07:14 AM
  • Posted: Thursday, February 15, 2024 2:47 AM
  • 6
Hi, im having problem to do query for this api {{base_url}}/odata/Product?$expand=ProductPictures

its return error Type Microsoft.OData.Edm.EdmModel is not configured as a type that is allowed to be serialized for this instance of ObjectSerializer.

im using grandnode latest image
0
  • Posted: Saturday, February 17, 2024 6:18 PM
  • Team
  • 150
It seems you're encountering a known limitation with the MongoDB libraries' support for OData operations within GrandNode. The error you're facing is due to the current MongoDB library version not fully supporting OData features, which results in serialization issues.
However, there's good news. A prerelease library is available that introduces support for the Select operation in OData queries. I hope, this enhancement will be target for inclusion in the upcoming grandnode version 2.2.
0
back to top
Filters