graphene-sqlalchemy-filter
graphene-sqlalchemy-filter copied to clipboard
Filters for Graphene SQLAlchemy integration
- Update references to `ResolveInfo` to `GraphQLResolveInfo` - Add handling for beta tags in Graphene version
Great library! This PR proposes a generic solution for filtering over relationships. For our project, we have to expose (almost) the entire database and creating custom filters for each relationship,...
It would be nice to be able to do something like: ```python class UserFilter(FilterSet): class Meta: model = User fields = { 'group.name': [...], } ``` Which would: * Allow...
I ran into an interesting bug that is caused by how we calculate the unique key in a `NestedFilterableConnectionField`: ``` # Unique dataloader key for context. data_loader_key = tuple((p for...
Hi there! How to do post processing or override relationship result with filters? https://github.com/art1415926535/graphene-sqlalchemy-filter/blob/master/examples/clients_and_records/graphql_schema.py#L40 ```python class Query(graphene.ObjectType): all_records = MyFilterableConnectionField(RecordsConnection) @classmethod def resolve_all_records(cls, root, info, *args, **kwargs): # Like res...
Hello, First of all thanks for maintaining this library. At Seemplicity we are using your library to enable our customers filtering their data using the Graphql API we are providing....
Our database was created prior to knowing about GraphQL. We named many of our primary key table columns `id`. To get around this issue we renamed all the `id` columns...
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 UnsortedSQLAlchemyConnectionField.resolve_connection function throws the following error when it tries to resolve relationship fields that are Sets instead of lists (defined using SQLAlchemy's "collection_class=set" on the relationship). ``` ERROR: Traceback...
Hi, I'm creating two join filters for the same table, and when I apply both the created query includes two joins with the same table. I have two domain models...