class GraphQL::Schema::Warden::PassThruWarden
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.
Public Class Methods
Source
# File lib/graphql/schema/warden.rb, line 81 def arguments(owner, ctx); owner.arguments(ctx); end
# File lib/graphql/schema/warden.rb, line 80 def interface_type_memberships(obj_t, ctx); obj_t.interface_type_memberships; end
Source
# File lib/graphql/schema/warden.rb, line 82 def loadable?(type, ctx); type.visible?(ctx); end
# File lib/graphql/schema/warden.rb, line 83 def loadable_possible_types(type, ctx); type.possible_types(ctx); end
Source
# File lib/graphql/schema/warden.rb, line 84 def visibility_profile @visibility_profile ||= Warden::VisibilityProfile.new(self) end
Source
# File lib/graphql/schema/warden.rb, line 76 def visible_argument?(arg, ctx); arg.visible?(ctx); end
# File lib/graphql/schema/warden.rb, line 78 def visible_enum_value?(ev, ctx); ev.visible?(ctx); end
Source
# File lib/graphql/schema/warden.rb, line 75 def visible_field?(field, ctx); field.visible?(ctx); end
Source
# File lib/graphql/schema/warden.rb, line 77 def visible_type?(type, ctx); type.visible?(ctx); end
# File lib/graphql/schema/warden.rb, line 79 def visible_type_membership?(tm, ctx); tm.visible?(ctx); end