Welcome to mirror list, hosted at ThFree Co, Russian Federation.

get_agents.query.graphql « queries « graphql « clusters_list « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f8efb6683f66748185385b913a026fd0ffd450d8 (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
#import "~/graphql_shared/fragments/pageInfo.fragment.graphql"
#import "../fragments/cluster_agent.fragment.graphql"

query getAgents(
  $defaultBranchName: String!
  $projectPath: ID!
  $first: Int
  $last: Int
  $afterAgent: String
  $afterTree: String
  $beforeAgent: String
  $beforeTree: String
) {
  project(fullPath: $projectPath) {
    id
    clusterAgents(first: $first, last: $last, before: $beforeAgent, after: $afterAgent) {
      nodes {
        ...ClusterAgentFragment
      }

      pageInfo {
        ...PageInfo
      }

      count
    }

    repository {
      tree(path: ".gitlab/agents", ref: $defaultBranchName) {
        trees(first: $first, last: $last, after: $afterTree, before: $beforeTree) {
          nodes {
            id
            name
            path
            webPath
          }

          pageInfo {
            ...PageInfo
          }
        }
      }
    }
  }
}