Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base_interface.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c21c95876becbbfa94b277de6bc6405a036e19b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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