Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating entities with non-indexed properties with ORM layer #16

Open
denexapp opened this issue Jun 2, 2018 · 1 comment
Open

Creating entities with non-indexed properties with ORM layer #16

denexapp opened this issue Jun 2, 2018 · 1 comment

Comments

@denexapp
Copy link

denexapp commented Jun 2, 2018

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
Copy link
Member

joente commented Jun 6, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants