#import "~/graphql_shared/fragments/pageInfo.fragment.graphql"
#import "./count.fragment.graphql"

query issuesAndMergeRequests(
  $firstIssues: Int
  $firstMergeRequests: Int
  $endCursorIssues: String
  $endCursorMergeRequests: String
) {
  issuesAndMergeRequestsIssues: instanceStatisticsMeasurements(
    identifier: ISSUES
    first: $firstIssues
    after: $endCursorIssues
  ) {
    nodes {
      ...Count
    }
    pageInfo {
      ...PageInfo
    }
  }
  issuesAndMergeRequestsMergeRequests: instanceStatisticsMeasurements(
    identifier: MERGE_REQUESTS
    first: $firstMergeRequests
    after: $endCursorMergeRequests
  ) {
    nodes {
      ...Count
    }
    pageInfo {
      ...PageInfo
    }
  }
}
