summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ci_variable_list/graphql/mutations/group_delete_variable.mutation.graphql
blob: 310e4a6e55123a1d8aad19f59c7c5cda410c03b7 (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
#import "~/ci_variable_list/graphql/fragments/ci_variable.fragment.graphql"

mutation deleteGroupVariable(
  $variable: CiVariable!
  $endpoint: String!
  $fullPath: ID!
  $groupId: ID!
) {
  deleteGroupVariable(
    variable: $variable
    endpoint: $endpoint
    fullPath: $fullPath
    groupId: $groupId
  ) @client {
    group {
      id
      ciVariables {
        nodes {
          ...BaseCiVariable
          ... on CiGroupVariable {
            environmentScope
            masked
            protected
          }
        }
      }
    }
    errors
  }
}