Class: Types::Namespaces::ProjectStatisticsType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/namespaces/project_statistics_type.rb

Overview

‘ResolvesGroups#resolve_with_lookahead` detects if the project_statistics field is requested and passes the with_statistics argument to GroupsFinder which then calls `Namespace#with_statistics`.

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

#try_field(graphql_name:) ⇒ Object



54
55
56
# File 'app/graphql/types/namespaces/project_statistics_type.rb', line 54

def try_field(graphql_name:)
  object.try(graphql_name.underscore)
end