Class: Mutations::CustomerRelations::Contacts::Base

Inherits:
BaseMutation
  • Object
show all
Includes:
Gitlab::Graphql::Authorize::AuthorizeResource, ResolvesIds
Defined in:
app/graphql/mutations/customer_relations/contacts/base.rb

Direct Known Subclasses

Create, Update

Constant Summary

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

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

Constants inherited from BaseMutation

BaseMutation::ERROR_MESSAGE

Instance Method Summary collapse

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

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

Methods included from ResolvesIds

#resolve_ids

Methods inherited from BaseMutation

#api_user?, authorization, authorized?, authorizes_object?, #current_user, #errors_on_object, #load_application_object, #read_only?, #ready?, #unauthorized_object

Instance Method Details

#set_organization!(args) ⇒ Object



17
18
19
20
21
# File 'app/graphql/mutations/customer_relations/contacts/base.rb', line 17

def set_organization!(args)
  return unless args[:organization_id]

  args[:organization_id] = args[:organization_id].model_id
end