#import "ee_else_ce/boards/graphql/board_list.fragment.graphql"

query BoardLists(
  $fullPath: ID!
  $boardId: BoardID!
  $filters: BoardIssueInput
  $isGroup: Boolean = false
  $isProject: Boolean = false
) {
  group(fullPath: $fullPath) @include(if: $isGroup) {
    id
    board(id: $boardId) {
      id
      hideBacklogList
      lists(issueFilters: $filters) {
        nodes {
          ...BoardListFragment
        }
      }
    }
  }
  project(fullPath: $fullPath) @include(if: $isProject) {
    id
    board(id: $boardId) {
      id
      hideBacklogList
      lists(issueFilters: $filters) {
        nodes {
          ...BoardListFragment
        }
      }
    }
  }
}
