#import "~/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
  }
}
