Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Mission Specialist Lvl 1
Message 1 of 1

pullRequests graqhql query with date filters

Hello Team,

I'm looking to query github API with specific date filters on pullRequests 

 

Dates can be createdAt, closedAt or mergedAt

 

Here is my query, appreciate any help or pointers

 

query query($owner: String!, $name: String!) {
  repository(owner: $owner, name: $name) {
    pullRequests(first: 50, states: MERGED, orderBy: {field: UPDATED_AT, direction: ASC}) {
      edges {
        node {
          author {
            login
          }
          createdAt
          closedAt
          updatedAt
          mergedAt
          id
          title
          url
          comments {
            totalCount
          }
          additions
          changedFiles
          deletions
        }
        cursor
      }
    }
  }
}