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

query roadmapGroupEpics(
  $fullPath: ID!
  $state: EpicState
  $sort: EpicSort
  $iid: ID
  $timeframe: Timeframe
  $labelName: [String!] = []
  $authorUsername: String = ""
  $milestoneTitle: String = ""
  $myReactionEmoji: String
  $confidential: Boolean
  $search: String = ""
  $first: Int = 50
  $not: NegatedEpicFilterInput
  $endCursor: String = ""
) {
  group(fullPath: $fullPath) {
    id
    name
    epics(
      iid: $iid
      state: $state
      sort: $sort
      labelName: $labelName
      authorUsername: $authorUsername
      milestoneTitle: $milestoneTitle
      myReactionEmoji: $myReactionEmoji
      confidential: $confidential
      search: $search
      first: $first
      timeframe: $timeframe
      not: $not
      after: $endCursor
    ) {
      edges {
        node {
          ...BaseEpic
          parent {
            id
          }
        }
      }
      pageInfo {
        ...PageInfo
      }
    }
  }
}
