barseghyanartur / graphene-elastic

Graphene Elasticsearch/OpenSearch (DSL) integration
https://pypi.org/project/graphene-elastic/
71 stars 17 forks source link

[Question]: How does one do filtering on date fields? #27

Closed seandavi closed 5 years ago

seandavi commented 5 years ago

I'm interested in applying range and gt/lt filters on one or more date fields. It appears that those filters are hard-coded to be used with "Decimal" types. Do you have an approach in mind for doing so? I can probably map the dates to something like a unix timestamp, but that complicates input for filtering.

If one wanted to add such functionality if it doesn't yet exist, where would you suggest starting, @barseghyanartur.

barseghyanartur commented 5 years ago

@seandavi

It's gonna be an easy fix.

seandavi commented 5 years ago

Thx!

barseghyanartur commented 5 years ago

@seandavi:

Done in 0.6, read updated docs.