diff options
Diffstat (limited to 'app/graphql/types/query_type.rb')
-rw-r--r-- | app/graphql/types/query_type.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/graphql/types/query_type.rb b/app/graphql/types/query_type.rb index 4a4d6727c3f..cc46c7e86e4 100644 --- a/app/graphql/types/query_type.rb +++ b/app/graphql/types/query_type.rb @@ -87,6 +87,12 @@ module Types argument :id, ::Types::GlobalIDType[::Issue], required: true, description: 'Global ID of the issue.' end + field :work_item, Types::WorkItemType, + null: true, + resolver: Resolvers::WorkItemResolver, + description: 'Find a work item. Returns `null` if `work_items` feature flag is disabled.' \ + ' The feature is experimental and is subject to change without notice.' + field :merge_request, Types::MergeRequestType, null: true, description: 'Find a merge request.' do @@ -145,6 +151,10 @@ module Types resolver: Resolvers::TopicsResolver, description: "Find project topics." + field :gitpod_enabled, GraphQL::Types::Boolean, + null: true, + description: "Whether Gitpod is enabled in application settings." + def design_management DesignManagementObject.new(nil) end @@ -189,6 +199,10 @@ module Types Gitlab::CurrentSettings.current_application_settings end + def gitpod_enabled + application_settings.gitpod_enabled + end + def query_complexity context.query end |