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

mutation addProjectVariable($variable: CiVariable!, $endpoint: String!, $fullPath: ID!, $id: ID!) {
  ciVariableMutation: addProjectVariable(
    variable: $variable
    endpoint: $endpoint
    fullPath: $fullPath
    id: $id
  ) @client {
    project {
      id
      ciVariables {
        nodes {
          ...BaseCiVariable
          ... on CiProjectVariable {
            environmentScope
            masked
            protected
            raw
          }
        }
      }
    }
    errors
  }
}