aiogcd icon indicating copy to clipboard operation
aiogcd copied to clipboard

Creating entities with non-indexed properties with ORM layer

Open denexapp opened this issue 6 years ago • 1 comments

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.

denexapp avatar Jun 02 '18 20:06 denexapp

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.

joente avatar Jun 06 '18 08:06 joente