Class: Resolvers::PackagesBaseResolver

Inherits:
BaseResolver
  • Object
show all
Defined in:
app/graphql/resolvers/packages_base_resolver.rb

Constant Summary collapse

SORT_TO_PARAMS_MAP =
{
  created_desc: { order_by: 'created', sort: 'desc' },
  created_asc: { order_by: 'created', sort: 'asc' },
  name_desc: { order_by: 'name', sort: 'desc' },
  name_asc: { order_by: 'name', sort: 'asc' },
  version_desc: { order_by: 'version', sort: 'desc' },
  version_asc: { order_by: 'version', sort: 'asc' },
  type_desc: { order_by: 'type', sort: 'desc' },
  type_asc: { order_by: 'type', sort: 'asc' }
}.freeze

Instance Method Summary collapse

Methods inherited from BaseResolver

as_single, authorization, authorized?, before_connection_authorization, before_connection_authorization_block, calls_gitaly!, complexity, complexity_multiplier, #current_user, field_options, last, #object, #offset_pagination, requires_argument!, resolver_complexity, #select_result, single, #single?, single_definition_blocks, singular_type, 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?

Instance Method Details

#resolveObject

Raises:

  • (NotImplementedError)

43
44
45
# File 'app/graphql/resolvers/packages_base_resolver.rb', line 43

def resolve
  raise NotImplementedError
end