{"repo":"art1415926535/graphene-sqlalchemy-filter","free":true,"listed":false,"github":"https://github.com/art1415926535/graphene-sqlalchemy-filter","clone":"git clone https://github.com/art1415926535/graphene-sqlalchemy-filter.git","description":"Filters for Graphene SQLAlchemy integration","language":"Python","stars":119,"topics":["graphql","graphql-server","graphene","graphene-sqlalchemy","sqlalchemy","filters"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Graphene-SQLAlchemy-Filter Filters for Graphene SQLAlchemy integration Choosing the Right Library ❗ Important: This project does not support graphene-sqlalchemy v3 . Starting from v3, filtering is already included in the upstream library. Use the following table to decide which package fits your needs: Graphene-SQLAlchemy version What to use Notes ------------ ------------- ------- v2.x ✅ graphene-sqlalchemy-filter Provides flexible filtering integration. v3.x ❌ Not supported here Built-in filtering is already available in graphene-sqlalchemy itself. Quick start Create a filter and add it to the graphene field. Now, we're going to create a query. --- Filters FilterSet class must inherit graphene sqlalchemy filter.FilterSet or your subclass of this class. There are three types of filters: 1. automatically generated filters 1. simple filters 1. filters that require join Automatically generated filters Metaclass must contain the sqlalchemy model and fields. Automatically generated filters must be specified by fields variable. Key - field name of sqlalchemy model, value - list of expressions (or shortcut). Shortcut (default: [...] ) will add all the allowed filters for this type of sqlalchemy field (does not work with hybrid property ). Key Description GraphQL postfix ---------------- --------------------------------- ----------------- eq equal ne not equal Ne like like Like ilike insensitive like Ilike is null is null IsNull in in In not in not in NotIn lt less than Lt lte less ","default_branch":null,"files":null,"tree":[],"storefront":"/r/art1415926535","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/art1415926535/graphene-sqlalchemy-filter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}