Retrieve open milestones for a repo

I want to retrieve all the open milestones for a given repo. What modificatins should I do to the below query.

query{
  organization(login: "wso2") {
    repository(name: "product-apim") {
      name
      url
      milestones{
        edges {
          node {
            id,
            title
          }
        }
      }
    }
  }
}
query{
  organization(login: "wso2") {
    repository(name: "product-apim") {
      name
      url
      milestones (first: 100,
      states: [OPEN],
       orderBy: {field: CREATED_AT, direction: DESC},
       ){
        edges {
          node {
            id,
            title
          }
        }
      }
    }
  }
}

Have to specify first/last value for pagination.

1 Like

Hey @isharailanga, Thanks for coming back to share your solution. In the meantime, we’re looking forward to seeing you around!

1 Like