Creating entities with non-indexed properties with ORM layer
Opened this issue · 1 comments
denexapp commented
Greetings!
Is there a way to create excluded from indexes properties with ORM Layer? Looks like there's a way to create them with aiogcd.connector.entity
, but it's kinda low level.
joente commented
At the moment, no, this is not possible with the ORM Layer. (Only the Union field value_type
is handled with the ORM Layer)
That said, it might be possible to implement, for example by wrapping the property values and add exclude_from_indexes
as an option. This would at least require to create a Value
class and adjust the value_to_dict
and value_from_dict
functions.