Class: Osso::GraphQL::Mutations::CreateEnterpriseAccount

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/osso/graphql/mutations/create_enterprise_account.rb

Instance Method Summary collapse

Methods inherited from BaseMutation

#account_domain, #admin_ready?, #domain_ready?, #field_errors, #internal_ready?, #provider_domain, #ready?, #response_data, #response_error

Instance Method Details

#resolve(**args) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/osso/graphql/mutations/create_enterprise_account.rb', line 15

def resolve(**args)
   = Osso::Models::EnterpriseAccount.new(args)

  return response_data(enterprise_account: ) if .save

  response_error(.errors)
end