Skip to content

GraphQL Filtering Pull Request on CreatedDate #24611

Discussion options

You must be logged in to vote

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 the search query like this:

{
  search(query: "repo:atom/atom is:pr is:open created:>2019-04-01", type: ISSUE, last: 100) {
    edges {
      node {
        ... on PullRequest {
          url
          title
          createdAt
        }
      }
    }
  }
}

Just replace 2019-04-01 with today’s date.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants