Skip to Content
Dec 09, 2020 at 09:41 AM

Setting default value for property on service level in CAP


Dear community,

I have a question regarding SAP CAP development.

On service level, I'm adding a property to my entity as explained here: Adding computed fields

entity Models as select from db.Models {
     null as test: Boolean }

How can I set a default value for this new property?

In this case, I would like my property "test" to be true.

Thanks and best regards,