91e9e50a11
And fix the tests so that it won't run into circular paths.
13 lines
244 B
Ruby
13 lines
244 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Resolvers
|
|
class BaseResolver < GraphQL::Schema::Resolver
|
|
def self.single
|
|
@single ||= Class.new(self) do
|
|
def resolve(**args)
|
|
super.first
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|