class GraphQL::Introspection::DirectiveType
Public Class Methods
(singleton(GraphQL::Schema::Directive) object, GraphQL::Query::Context context, include_deprecated: bool) → Array[GraphQL::Schema::Argument]
Source
# File lib/graphql/introspection/directive_type.rb, line 26 def self.resolve_args(object, context, include_deprecated:) args = context.types.arguments(object) args = args.reject(&:deprecation_reason) unless include_deprecated args end
Public Instance Methods
(include_deprecated: bool) → Array[GraphQL::Schema::Argument]
Source
# File lib/graphql/introspection/directive_type.rb, line 33 def args(include_deprecated:) self.class.resolve_args(object, context, include_deprecated: include_deprecated) end