#import "../fragments/design.fragment.graphql"
#import "~/graphql_shared/fragments/author.fragment.graphql"

query getDesign(
  $fullPath: ID!
  $iid: String!
  $atVersion: DesignManagementVersionID
  $filenames: [String!]
) {
  project(fullPath: $fullPath) {
    id
    issue(iid: $iid) {
      designCollection {
        designs(atVersion: $atVersion, filenames: $filenames) {
          nodes {
            ...DesignItem
            issue {
              id
              title
              webPath
              webUrl
              participants {
                nodes {
                  ...Author
                }
              }
            }
          }
        }
      }
    }
  }
}
