graphql-python / graphene-sqlalchemy

Graphene SQLAlchemy integration
http://docs.graphene-python.org/projects/sqlalchemy/en/latest/
MIT License
974 stars 225 forks source link

filter: Guys, did you forgot on DateTimeFilter? #403

Closed Salamek closed 4 months ago

Salamek commented 4 months ago

Hi, i had to add:

class DateTimeFilter(OrderedFilter):
    """Concrete Filter Class which specifies a type for all the abstract filter methods defined in the super classes"""

    class Meta:
        graphene_type = graphene.DateTime

to graphene_sqlalchemy/filters.py for filter on graphene.DateTime to have lg, lt etc operators...

Should i create PR or did i miss something?

erikwrede commented 4 months ago

Yep, that one is indeed missing. Feel free to create a PR!