class Osso::GraphQL::Mutations::CreateEnterpriseAccount
Public Instance Methods
resolve(**args)
click to toggle source
# File lib/osso/graphql/mutations/create_enterprise_account.rb, line 15 def resolve(**args) enterprise_account = Osso::Models::EnterpriseAccount.new(args) if enterprise_account.save Osso::Analytics.capture(email: context[:email], event: self.class.name.demodulize, properties: args) return response_data(enterprise_account: enterprise_account) end response_error(enterprise_account.errors) end