GraphQL Mutation: Stop and Delete Environment

Problem

As summarized in this comment, frontend needs GraphQL Mutation for stopping and deleting environments.

Proposal

Add a graphql mutation to stop an environment:

mutation {
  stopEnvironment(input: { environmentId: "gid://gitlab/Environment/1"}) {
    errors
  }
}

It works same with https://docs.gitlab.com/ee/api/environments.html#stop-an-environment.

Add a graphql mutation to delete an environment:

mutation {
  destroyEnvironment(input: { environmentId: "gid://gitlab/Environment/1"}) {
    errors
  }
}

It works same with https://docs.gitlab.com/ee/api/environments.html#delete-an-environment.

Edited by Shinya Maeda