debian-mirror-gitlab/app/graphql/types/base_interface.rb
2021-04-29 21:17:54 +05:30

16 lines
303 B
Ruby

# frozen_string_literal: true
module Types
module BaseInterface
include GraphQL::Schema::Interface
field_class ::Types::BaseField
definition_methods do
def authorized?(object, context)
resolve_type(object, context).authorized?(object, context)
end
end
end
end