debian-mirror-gitlab/app/graphql/resolvers/base_resolver.rb
2019-05-18 00:54:41 +05:30

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