Class: Resolvers::BoardListResolver

Inherits:
Object
  • Object
show all
Includes:
BoardItemFilterable, Gitlab::Graphql::Authorize::AuthorizeResource
Defined in:
app/graphql/resolvers/board_list_resolver.rb

Constant Summary

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

Gitlab::Graphql::Authorize::AuthorizeResource::ConfigurationError, Gitlab::Graphql::Authorize::AuthorizeResource::RESOURCE_ACCESS_ERROR

Instance Method Summary collapse

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

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

Instance Method Details

#resolve(id: nil, issue_filters: {}) ⇒ Object


21
22
23
24
25
26
27
# File 'app/graphql/resolvers/board_list_resolver.rb', line 21

def resolve(id: nil, issue_filters: {})
  context.scoped_set!(:issue_filters, item_filters(issue_filters))

  Gitlab::Graphql::Lazy.with_value(find_list(id: id)) do |list|
    list if authorized_resource?(list)
  end
end