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

query projectRequirementsEE(
  $projectPath: ID!
  $state: RequirementState
  $firstPageSize: Int
  $lastPageSize: Int
  $prevPageCursor: String = ""
  $nextPageCursor: String = ""
  $authorUsernames: [String!] = []
  $search: String = ""
  $sortBy: Sort = CREATED_DESC
) {
  project(fullPath: $projectPath) {
    requirements(
      first: $firstPageSize
      last: $lastPageSize
      after: $nextPageCursor
      before: $prevPageCursor
      state: $state
      authorUsername: $authorUsernames
      search: $search
      sort: $sortBy
    ) {
      nodes {
        ...Requirement
      }
      pageInfo {
        ...PageInfo
      }
    }
  }
}
