GraphQL Filtering Pull Request on CreatedDate #24611
-
This query is working, but i am not able to find out how to filter it on Created Date. I want Pull Requests which are created today. query GetPullRequest { |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
To my understanding, if the
Just replace |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @lee-dohm , where can i find more on the ‘search’, ‘query’ grammer. Any pointer will be appriciated. I want to skip pr where author.login is equal to ‘greenkeeper’ etc. |
Beta Was this translation helpful? Give feedback.
-
It’s the same query syntax as all of GitHub, so you can find the documentation in our help docs on search. So if you wanted to exclude greenkeeper, you could add I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
why is it that it doesn’t matter wether I use |
Beta Was this translation helpful? Give feedback.
To my understanding, if the
PullRequestsConnection
doesn’t have a method of filtering by date, then it can’t be done via that type of query. However, you could use thesearch
query like this:Just replace
2019-04-01
with today’s date.