Class: GraphQL::Schema::Warden::PassThruWarden Private
- Inherits:
-
Object
- Object
- GraphQL::Schema::Warden::PassThruWarden
- 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
-
.arguments(owner, ctx) ⇒ Object
private
-
.interface_type_memberships(obj_t, ctx) ⇒ Object
private
-
.loadable?(type, ctx) ⇒ Boolean
private
-
.loadable_possible_types(type, ctx) ⇒ Object
private
-
.visibility_profile ⇒ Object
private
-
.visible_argument?(arg, ctx) ⇒ Boolean
private
-
.visible_enum_value?(ev, ctx) ⇒ Boolean
private
-
.visible_field?(field, ctx) ⇒ Boolean
private
-
.visible_type?(type, ctx) ⇒ Boolean
private
-
.visible_type_membership?(tm, ctx) ⇒ Boolean
private
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.
73 |
# File 'lib/graphql/schema/warden.rb', line 73 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.
72 |
# File 'lib/graphql/schema/warden.rb', line 72 def interface_type_memberships(obj_t, ctx); obj_t.interface_type_memberships; end |
.loadable?(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.
74 |
# File 'lib/graphql/schema/warden.rb', line 74 def loadable?(type, ctx); type.visible?(ctx); end |
.loadable_possible_types(type, 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.
75 |
# File 'lib/graphql/schema/warden.rb', line 75 def loadable_possible_types(type, ctx); type.possible_types(ctx); end |
.visibility_profile ⇒ 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 77 78 |
# File 'lib/graphql/schema/warden.rb', line 76 def visibility_profile @visibility_profile ||= Warden::VisibilityProfile.new(self) 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.
68 |
# File 'lib/graphql/schema/warden.rb', line 68 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.
70 |
# File 'lib/graphql/schema/warden.rb', line 70 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.
67 |
# File 'lib/graphql/schema/warden.rb', line 67 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.
69 |
# File 'lib/graphql/schema/warden.rb', line 69 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.
71 |
# File 'lib/graphql/schema/warden.rb', line 71 def visible_type_membership?(tm, ctx); tm.visible?(ctx); end |