lib/upment/graphql/mutations/refresh_token/destroy.rb
# frozen_string_literal: true
module Mutations
module RefreshToken
DESTROY ||= GraphQL::Field.define do
name 'DestroyRefreshToken'
description 'Destroy refresh token'
argument :id, !types.Int
type types.Boolean
resolve ->(_obj, args, ctx) do
Trailblazer::GraphQL.new(args, ctx).call(::RefreshToken::Destroy)
end
end
end
end