With a datetime field how do I filter for dates in...
# prisma-whats-new
l
With a datetime field how do I filter for dates in the future? Something like this:
Copy code
query FetchEvents {
  allEvents(filter: { dateStart_gt: NOW }) {
    id
  }
}
n
@lpil hey, currently you need to supply the time constant that you're interested in, so for example
Copy code
query FetchEvents {
  allEvents(filter: { dateStart_gt: "2017-03-22" }) {
    id
  }
}
Just created this feature request: https://github.com/graphcool/feature-requests/issues/149
l
I was hoping that it would define that one for me, ah well. Thanks!
👍 1
n
Yep would be super helpful, thanks for the suggestion!