summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/registry/explorer/graphql/queries/get_container_repositories_details.query.graphql
blob: 8b6d778c655c2ba1f02f311c586d631cf3825dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
query getContainerRepositoriesDetails(
  $fullPath: ID!
  $name: String
  $first: Int
  $last: Int
  $after: String
  $before: String
  $isGroupPage: Boolean!
) {
  project(fullPath: $fullPath) @skip(if: $isGroupPage) {
    containerRepositories(name: $name, after: $after, before: $before, first: $first, last: $last) {
      nodes {
        id
        tagsCount
      }
    }
  }
  group(fullPath: $fullPath) @include(if: $isGroupPage) {
    containerRepositories(name: $name, after: $after, before: $before, first: $first, last: $last) {
      nodes {
        id
        tagsCount
      }
    }
  }
}