debian-mirror-gitlab/app/graphql/types/base_interface.rb

16 lines
303 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2018-11-08 19:23:39 +05:30
module Types
module BaseInterface
include GraphQL::Schema::Interface
2021-02-22 17:27:13 +05:30
field_class ::Types::BaseField
2021-04-29 21:17:54 +05:30
definition_methods do
def authorized?(object, context)
resolve_type(object, context).authorized?(object, context)
end
end
2018-11-08 19:23:39 +05:30
end
end