Sha256: f2244fec4d480de90f0ad1353af00c4db1289b9781a5e08a137177b7665f5d24
Contents?: true
Size: 581 Bytes
Versions: 9
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true module Osso module GraphQL module Mutations class DeleteIdentityProvider < BaseMutation null false argument :id, ID, required: true field :identity_provider, Types::IdentityProvider, null: true field :errors, [String], null: false def resolve(id:) identity_provider = Osso::Models::IdentityProvider.find(id) return response_data(identity_provider: nil) if identity_provider.destroy response_error(identity_provider.errors) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems