You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to create a way to implement filters that could create complex where clauses with groupings and I was beginning to think it was not possible to create a recursive filter when I accidentally made it work. So I just wanted to share this code in case anyone else finds it helpful:
I added a where filter to a subclassed UnsortedSQLAlchemyConnectionField
This might not be the best or the prettiest way to achieve this, but it allows you to then create filters that refer to themselves recursively so now you can make a graphene request that looks like this
I am closing all old issues&PRs related to filtering. The discussion will continue in #347 (WIP). A proposal for the implementation of filters is currently being worked on and will be posted there once it is ready.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics referencing this issue.
I was trying to create a way to implement filters that could create complex where clauses with groupings and I was beginning to think it was not possible to create a recursive filter when I accidentally made it work. So I just wanted to share this code in case anyone else finds it helpful:
I added a where filter to a subclassed
UnsortedSQLAlchemyConnectionField
the magic happens in create_filter_argument:
This might not be the best or the prettiest way to achieve this, but it allows you to then create filters that refer to themselves recursively so now you can make a graphene request that looks like this
The text was updated successfully, but these errors were encountered: