Class: GraphQL::Introspection::DirectiveType
- Inherits:
-
Introspection::BaseObject
- Object
- Introspection::BaseObject
- GraphQL::Introspection::DirectiveType
- Defined in:
- lib/graphql/introspection/directive_type.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.resolve_args(object, context, include_deprecated:) ⇒ Object
24 25 26 27 28 |
# File 'lib/graphql/introspection/directive_type.rb', line 24 def self.resolve_args(object, context, include_deprecated:) args = context.types.arguments(object) args = args.reject(&:deprecation_reason) unless include_deprecated args end |
Instance Method Details
#args(include_deprecated:) ⇒ Object
30 31 32 |
# File 'lib/graphql/introspection/directive_type.rb', line 30 def args(include_deprecated:) self.class.resolve_args(object, context, include_deprecated: include_deprecated) end |