Class: HasHelpers::Resolvers::Internal::Roles::Role

Inherits:
Base
  • Object
show all
Defined in:
app/graphql/has_helpers/resolvers/internal/roles.rb

Instance Method Summary collapse

Methods included from ServiceTrust::GraphQL::Authorizable

#authorized?

Instance Method Details

#resolve(id:) ⇒ Object



33
34
35
36
# File 'app/graphql/has_helpers/resolvers/internal/roles.rb', line 33

def resolve(id:)
  ensure_server_mode!
  ::HasHelpers::Role.find_by(id: id)
end