Class: Osso::GraphQL::Mutations::CreateOauthClient
- Inherits:
-
BaseMutation
- Object
- GraphQL::Schema::RelayClassicMutation
- BaseMutation
- Osso::GraphQL::Mutations::CreateOauthClient
show all
- Defined in:
- lib/osso/graphql/mutations/create_oauth_client.rb
Instance Method Summary
collapse
#account_domain, #admin_ready?, #domain_ready?, #field_errors, #internal_ready?, #provider_domain, #response_data, #response_error
Instance Method Details
#ready? ⇒ Boolean
22
23
24
|
# File 'lib/osso/graphql/mutations/create_oauth_client.rb', line 22
def ready?(*)
admin_ready?
end
|
#resolve(**args) ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/osso/graphql/mutations/create_oauth_client.rb', line 14
def resolve(**args)
oauth_client = Osso::Models::OauthClient.new(args)
return response_data(oauth_client: oauth_client) if oauth_client.save
response_error(oauth_client.errors)
end
|