Class: Types::Ci::PipelineCreation::RequestType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/ci/pipeline_creation/request_type.rb

Overview

rubocop:disable Graphql/AuthorizeTypes – Authorization is handled in the ‘ProjectType#ci_pipeline_creation_request` field

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#pipelineObject



28
29
30
31
32
# File 'app/graphql/types/ci/pipeline_creation/request_type.rb', line 28

def pipeline
  return unless object['pipeline_id']

  ::Gitlab::Graphql::Loaders::BatchModelLoader.new(::Ci::Pipeline, object['pipeline_id']).find
end