Class: Resolvers::DesignManagement::Version::DesignsAtVersionResolver

Inherits:
BaseResolver
  • Object
show all
Includes:
Gitlab::Graphql::Authorize::AuthorizeResource
Defined in:
app/graphql/resolvers/design_management/version/designs_at_version_resolver.rb

Overview

Resolver for DesignAtVersion objects given an implicit version context

Constant Summary collapse

DesignID =
::Types::GlobalIDType[::DesignManagement::Design]

Constants included from Gitlab::Graphql::Authorize::AuthorizeResource

Gitlab::Graphql::Authorize::AuthorizeResource::RESOURCE_ACCESS_ERROR

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Gitlab::Graphql::Authorize::AuthorizeResource

#authorize!, #authorized_find!, #authorized_resource?, #find_object, #raise_resource_not_available_error!

Methods inherited from BaseResolver

as_single, complexity, complexity_multiplier, #current_user, field_options, last, #object, #offset_pagination, requires_argument!, resolver_complexity, #select_result, #single?, single_definition_blocks, singular_type, #synchronized_object, when_single

Methods included from Gitlab::Utils::Override

#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!

Methods included from Gitlab::Graphql::GlobalIDCompatibility

#coerce_global_id_arguments!

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Class Method Details

.singleObject


24
25
26
# File 'app/graphql/resolvers/design_management/version/designs_at_version_resolver.rb', line 24

def self.single
  ::Resolvers::DesignManagement::Version::DesignAtVersionResolver
end

Instance Method Details

#resolve(ids: nil, filenames: nil) ⇒ Object


28
29
30
# File 'app/graphql/resolvers/design_management/version/designs_at_version_resolver.rb', line 28

def resolve(ids: nil, filenames: nil)
  find(ids, filenames).execute.map { |d| make(d) }
end