Support for hybrid_property?
See original GitHub issueHello,
I am trying to use hybrid_property as a property on a GraphQL response. However, when I execute the GraphQL request, I am receiving an error stating the property cannot be found.
Are SQlAlchemy hybrid_property attributes currently supported?
Thanks, G
@hybrid_property
def document_count(self):
return len(self.linked_documents)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Hybrid Attributes - SQLAlchemy 1.4 Documentation
“hybrid” means the attribute has distinct behaviors defined at the class level and at the instance level. The hybrid extension provides a special...
Read more >Equitable Distribution: What is Hybrid Property?
A marital residence is often hybrid property when one party purchased it prior to the marriage with their separate funds, and then the...
Read more >How to Support the Hybrid Work Model - CommercialSearch
The platform is designed to help occupancy planners oversee the hybrid workplace.
Read more >What is the difference between marital, separate and hybrid ...
Hybrid property includes assets that may have once been separate, but over time has generated income, increased in value and/or is mixed with...
Read more >What is "Hybrid" Property and How Is It Divided?
In Virginia, hybrid property (as the name implies) is classified as both marital property and separate property. Some examples include income ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I want to tell graphene-sqlalchemy that the returned type for the hybrid_property is a list of SQLAlchemy objects
@anisjonischkeit Just probably late answer to your Q (and help anyone who google this as i did), i had similar problem with hybrid property that returned boolean, but graphene-sqlalchemy was casting it to string (
"true"instead oftrue). Only thing i had to do is set query return type in SQLAlchemyObjectTypeis_managed = graphene.Boolean():After this i get correct
is_managed: trueinstead ofis_managed: "true"in query response JSONNot sure if this fix can help with your problem or not, but i guess you should use something like
graphene.List(Licence)