graphene-sqlalchemy-filter
graphene-sqlalchemy-filter copied to clipboard
Intercept nested queries to add default filters
Hello,
I'm looking to add a default filter based on a context variable to nested queries.
For example, I'd like to only return active records (status = 'active') for all the data tree.
I've tried overwriting the FilterableConnectionField get_query method but it only applies to top level query and not nested.
Any guidance on how can this be done?
Thank you!