Skip to Content
1
Dec 21, 2022 at 06:48 PM

Looking for a way to omit virtual properties in req.query.SELECT.columns

324 Views

Hi Community,

I've got an issue with a cap application connecting to an external oData service. I've extended an entity with computed properties (virtual), which is working fine when i invoke the entityset without any additional parameters. When i try to invoke the entityset using $select, sort etc on the computed properties the CAP service fails, because it's sending the computed properties in the req.query.SELECT.columns and those properties does not exist on the external service.
I can't find a better way to solve this than manually splice out those columns, but this seems like a dirty solution.

Does anyone know of a better way of achieving this or even better is there some generic way to do this in the framework which i missed out on?

BR

Mikkel