diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
commit | e4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch) | |
tree | 2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /doc/development/api_graphql_styleguide.md | |
parent | ffda4e7bcac36987f936b4ba515995a6698698f0 (diff) |
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'doc/development/api_graphql_styleguide.md')
-rw-r--r-- | doc/development/api_graphql_styleguide.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/development/api_graphql_styleguide.md b/doc/development/api_graphql_styleguide.md index d6492b7814e..9bc62ed7095 100644 --- a/doc/development/api_graphql_styleguide.md +++ b/doc/development/api_graphql_styleguide.md @@ -813,6 +813,12 @@ field :token, GraphQL::Types::String, null: true, description: 'Token for login.' ``` +Similarly, you can also mark an entire mutation as Alpha by updating where the mutation is mounted in `app/graphql/types/mutation_type.rb`: + +```ruby +mount_mutation Mutations::Ci::JobArtifact::BulkDestroy, alpha: { milestone: '15.10' } +``` + Alpha GraphQL items is a custom GitLab feature that leverages GraphQL deprecations. An Alpha item appears as deprecated in the GraphQL schema. Like all deprecated schema items, you can test an Alpha field in [GraphiQL](../api/graphql/index.md#graphiql). However, be aware that the GraphiQL @@ -1668,7 +1674,7 @@ should look like this: ### Mounting the mutation To make the mutation available it must be defined on the mutation -type that is stored in `graphql/types/mutation_types`. The +type that is stored in `graphql/types/mutation_type`. The `mount_mutation` helper method defines a field based on the GraphQL-name of the mutation: |