gitlab-org--gitlab-foss/app/assets/javascripts/clusters_list/graphql/queries/get_agents.query.graphql

40 lines
738 B
GraphQL

#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
$beforeAgent: 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 {
nodes {
id
name
path
webPath
}
}
}
}
}
}