Filtering timelines by specific event types


#1

Is there a way to filter the timeline so it only includes objects of certain types? In this case I’d like to only return ReviewRequestedEvent objects. Timelines can become huge so this would help drastically reduce response sizes.

query { 
  repository(owner: "nodable", name:"auth-service") {
    pullRequest(number: 10) {
      id
      timeline(last: 50) {
        edges {
          node {
            ... on ReviewRequestedEvent{
              id
              requestedReviewer {
                ... on User {
                  login
                }
              }
              actor {
                login
              }
              createdAt
            }
          }
        }
      }
    }
  }
}


#2

I currently use the REST API and am dealing with the issue there. I’ve been playing around with the graphQL API to see if it supported this.


#3

Also, does the node_id in the API V3 issue events endpoint correspond to thenode ids in the ReviewRequestedEvent and other objects?

There are a couple different “events” manifestations across API v3 so I wanted to confirm.