graphene-sqlalchemy-filter icon indicating copy to clipboard operation
graphene-sqlalchemy-filter copied to clipboard

Intercept nested queries to add default filters

Open fernandoflorez opened this issue 3 years ago • 0 comments

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!

fernandoflorez avatar Jan 14 '22 16:01 fernandoflorez