summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/packages_and_registries/container_registry/explorer/graphql/queries/get_container_repositories_details.query.graphql
blob: 01cb7fa1cab9715311a1a725c905099ccbd6fe9c (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
query getContainerRepositoriesDetails(
  $fullPath: ID!
  $name: String
  $first: Int
  $last: Int
  $after: String
  $before: String
  $isGroupPage: Boolean!
  $sort: ContainerRepositorySort
) {
  project(fullPath: $fullPath) @skip(if: $isGroupPage) {
    containerRepositories(
      name: $name
      after: $after
      before: $before
      first: $first
      last: $last
      sort: $sort
    ) {
      nodes {
        id
        tagsCount
      }
    }
  }
  group(fullPath: $fullPath) @include(if: $isGroupPage) {
    containerRepositories(
      name: $name
      after: $after
      before: $before
      first: $first
      last: $last
      sort: $sort
    ) {
      nodes {
        id
        tagsCount
      }
    }
  }
}