Class: Types::Clusters::AgentTokenType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/clusters/agent_token_type.rb

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#cluster_agentObject


52
53
54
# File 'app/graphql/types/clusters/agent_token_type.rb', line 52

def cluster_agent
  Gitlab::Graphql::Loaders::BatchModelLoader.new(::Clusters::Agent, object.agent_id).find
end