summaryrefslogtreecommitdiff
path: root/app/graphql/queries/container_registry/get_container_repositories.query.graphql
blob: 6171233c44628cf7fa3fd55133981f36805b3a58 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
query getProjectContainerRepositories(
  $fullPath: ID!
  $name: String
  $first: Int
  $last: Int
  $after: String
  $before: String
  $isGroupPage: Boolean!
) {
  project(fullPath: $fullPath) @skip(if: $isGroupPage) {
    __typename
    containerRepositoriesCount
    containerRepositories(name: $name, after: $after, before: $before, first: $first, last: $last) {
      __typename
      nodes {
        id
        name
        path
        status
        location
        canDelete
        createdAt
        expirationPolicyStartedAt
        __typename
      }
      pageInfo {
        __typename
        hasNextPage
        hasPreviousPage
        startCursor
        endCursor
      }
    }
  }
  group(fullPath: $fullPath) @include(if: $isGroupPage) {
    __typename
    containerRepositoriesCount
    containerRepositories(name: $name, after: $after, before: $before, first: $first, last: $last) {
      __typename
      nodes {
        id
        name
        path
        status
        location
        canDelete
        createdAt
        expirationPolicyStartedAt
        __typename
      }
      pageInfo {
        __typename
        hasNextPage
        hasPreviousPage
        startCursor
        endCursor
      }
    }
  }
}