Class: GraphQL::Schema::Warden::NullWarden Private

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/schema/warden.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(_filter = nil, context:, schema:) ⇒ NullWarden

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of NullWarden.



67
68
69
# File 'lib/graphql/schema/warden.rb', line 67

def initialize(_filter = nil, context:, schema:)
  @schema = schema
end

Instance Method Details

#arguments(argument_owner, ctx = nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



78
# File 'lib/graphql/schema/warden.rb', line 78

def arguments(argument_owner, ctx = nil); argument_owner.all_argument_definitions; end

#directivesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



83
# File 'lib/graphql/schema/warden.rb', line 83

def directives; @schema.directives.values; end

#enum_values(enum_defn) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:disable Development/ContextIsPassedCop



79
# File 'lib/graphql/schema/warden.rb', line 79

def enum_values(enum_defn); enum_defn.enum_values; end

#fields(type_defn) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:disable Development/ContextIsPassedCop



84
# File 'lib/graphql/schema/warden.rb', line 84

def fields(type_defn); type_defn.all_field_definitions; end

#get_argument(parent_type, argument_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:disable Development/ContextIsPassedCop



80
# File 'lib/graphql/schema/warden.rb', line 80

def get_argument(parent_type, argument_name); parent_type.get_argument(argument_name); end

#get_field(parent_type, field_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



85
# File 'lib/graphql/schema/warden.rb', line 85

def get_field(parent_type, field_name); @schema.get_field(parent_type, field_name); end

#get_type(type_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:disable Development/ContextIsPassedCop



77
# File 'lib/graphql/schema/warden.rb', line 77

def get_type(type_name); @schema.get_type(type_name); end

#interface_type_memberships(obj_type, _ctx = nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



76
# File 'lib/graphql/schema/warden.rb', line 76

def interface_type_memberships(obj_type, _ctx = nil); obj_type.interface_type_memberships; end

#interfaces(obj_type) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



89
# File 'lib/graphql/schema/warden.rb', line 89

def interfaces(obj_type); obj_type.interfaces; end

#possible_types(type_defn) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



88
# File 'lib/graphql/schema/warden.rb', line 88

def possible_types(type_defn); @schema.possible_types(type_defn); end

#reachable_type?(type_name) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


86
# File 'lib/graphql/schema/warden.rb', line 86

def reachable_type?(type_name); true; end

#reachable_typesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:disable Development/ContextIsPassedCop



87
# File 'lib/graphql/schema/warden.rb', line 87

def reachable_types; @schema.types.values; end

#root_type_for_operation(op_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



82
# File 'lib/graphql/schema/warden.rb', line 82

def root_type_for_operation(op_name); @schema.root_type_for_operation(op_name); end

#typesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:disable Development/ContextIsPassedCop



81
# File 'lib/graphql/schema/warden.rb', line 81

def types; @schema.types; end

#visible_argument?(arg_defn, _ctx = nil) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


72
# File 'lib/graphql/schema/warden.rb', line 72

def visible_argument?(arg_defn, _ctx = nil); true; end

#visible_enum_value?(enum_value, _ctx = nil) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


74
# File 'lib/graphql/schema/warden.rb', line 74

def visible_enum_value?(enum_value, _ctx = nil); true; end

#visible_field?(field_defn, _ctx = nil, owner = nil) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


71
# File 'lib/graphql/schema/warden.rb', line 71

def visible_field?(field_defn, _ctx = nil, owner = nil); true; end

#visible_type?(type_defn, _ctx = nil) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


73
# File 'lib/graphql/schema/warden.rb', line 73

def visible_type?(type_defn, _ctx = nil); true; end

#visible_type_membership?(type_membership, _ctx = nil) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


75
# File 'lib/graphql/schema/warden.rb', line 75

def visible_type_membership?(type_membership, _ctx = nil); true; end