Class: GraphQL::Schema::Warden::PassThruWarden Private

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

Overview

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.

This is used when a caller provides a Hash for context. We want to call the schema’s hooks, but we don’t have a full-blown warden. The context arguments to these methods exist purely to simplify the code that calls methods on this object, so it will have everything it needs.

Class Method Summary collapse

Class Method Details

.arguments(owner, ctx) ⇒ 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.



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

def arguments(owner, ctx); owner.arguments(ctx); end

.interface_type_memberships(obj_t, ctx) ⇒ 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 interface_type_memberships(obj_t, ctx); obj_t.interface_type_memberships; end

.visible_argument?(arg, ctx) ⇒ 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)


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

def visible_argument?(arg, ctx); arg.visible?(ctx); end

.visible_enum_value?(ev, ctx) ⇒ 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)


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

def visible_enum_value?(ev, ctx); ev.visible?(ctx); end

.visible_field?(field, ctx) ⇒ 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)


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

def visible_field?(field, ctx); field.visible?(ctx); end

.visible_type?(type, ctx) ⇒ 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)


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

def visible_type?(type, ctx); type.visible?(ctx); end

.visible_type_membership?(tm, ctx) ⇒ 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)


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

def visible_type_membership?(tm, ctx); tm.visible?(ctx); end