Class: Resolvers::WorkItems::TypesResolver
- Inherits:
-
BaseResolver
- Object
- GraphQL::Schema::Resolver
- BaseResolver
- Resolvers::WorkItems::TypesResolver
- Includes:
- LooksAhead
- Defined in:
- app/graphql/resolvers/work_items/types_resolver.rb
Instance Method Summary collapse
Methods included from LooksAhead
Methods inherited from BaseResolver
as_single, authorization, authorized?, before_connection_authorization, before_connection_authorization_block, calculate_ext_conn_complexity, calls_gitaly!, calls_gitaly?, complexity, complexity_multiplier, #current_user, last, #object, #offset_pagination, requires_argument!, 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!
Instance Method Details
#resolve_with_lookahead(name: nil) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'app/graphql/resolvers/work_items/types_resolver.rb', line 14 def resolve_with_lookahead(name: nil) context.scoped_set!(:resource_parent, object) # This will require a finder in the future when groups/projects get their work item types # All groups/projects use all types for now base_scope = ::WorkItems::Type base_scope = base_scope.by_type(name) if name apply_lookahead(base_scope.order_by_name_asc) end |