#import "~/ci/ci_variable_list/graphql/fragments/ci_variable.fragment.graphql"

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