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

Intercept nested queries to add default filters #65

Open
fernandoflorez opened this issue Jan 14, 2022 · 0 comments
Open

Intercept nested queries to add default filters #65

fernandoflorez opened this issue Jan 14, 2022 · 0 comments

Comments

@fernandoflorez
Copy link

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!

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

No branches or pull requests

1 participant