Class: GraphQL::Schema::Warden::VisibilityProfile Private
- Inherits:
-
Object
- Object
- GraphQL::Schema::Warden::VisibilityProfile
- 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
- #all_types ⇒ Object private
- #argument(owner, arg_name) ⇒ Object private
- #arguments(owner) ⇒ Object private
- #directive_exists?(dir_name) ⇒ Boolean private
- #directives ⇒ Object private
- #enum_values(enum_type) ⇒ Object private
- #field(owner, field_name) ⇒ Object private
- #fields(owner) ⇒ Object private
-
#initialize(warden) ⇒ VisibilityProfile
constructor
private
A new instance of VisibilityProfile.
- #interfaces(obj_type) ⇒ Object private
-
#loadable?(t, ctx) ⇒ Boolean
private
TODO remove ctx here?.
- #loadable_possible_types(t, ctx) ⇒ Object private
- #mutation_root ⇒ Object private
- #possible_types(type) ⇒ Object private
- #query_root ⇒ Object private
- #reachable_type?(type_name) ⇒ Boolean private
- #subscription_root ⇒ Object private
- #type(name) ⇒ Object private
- #visible_enum_value?(enum_value, ctx = nil) ⇒ Boolean private
Constructor Details
#initialize(warden) ⇒ VisibilityProfile
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 VisibilityProfile.
121 122 123 |
# File 'lib/graphql/schema/warden.rb', line 121 def initialize(warden) @warden = warden end |
Instance Method Details
#all_types ⇒ 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.
173 174 175 |
# File 'lib/graphql/schema/warden.rb', line 173 def all_types @warden.reachable_types end |
#argument(owner, arg_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.
141 142 143 |
# File 'lib/graphql/schema/warden.rb', line 141 def argument(owner, arg_name) @warden.get_argument(owner, arg_name) end |
#arguments(owner) ⇒ 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.
157 158 159 |
# File 'lib/graphql/schema/warden.rb', line 157 def arguments(owner) @warden.arguments(owner) end |
#directive_exists?(dir_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.
129 130 131 |
# File 'lib/graphql/schema/warden.rb', line 129 def directive_exists?(dir_name) @warden.directives.any? { |d| d.graphql_name == dir_name } end |
#directives ⇒ 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.
125 126 127 |
# File 'lib/graphql/schema/warden.rb', line 125 def directives @warden.directives end |
#enum_values(enum_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.
169 170 171 |
# File 'lib/graphql/schema/warden.rb', line 169 def enum_values(enum_type) @warden.enum_values(enum_type) end |
#field(owner, 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.
137 138 139 |
# File 'lib/graphql/schema/warden.rb', line 137 def field(owner, field_name) @warden.get_field(owner, field_name) end |
#fields(owner) ⇒ 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.
161 162 163 |
# File 'lib/graphql/schema/warden.rb', line 161 def fields(owner) @warden.fields(owner) 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.
177 178 179 |
# File 'lib/graphql/schema/warden.rb', line 177 def interfaces(obj_type) @warden.interfaces(obj_type) end |
#loadable?(t, 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.
TODO remove ctx here?
181 182 183 |
# File 'lib/graphql/schema/warden.rb', line 181 def loadable?(t, ctx) # TODO remove ctx here? @warden.loadable?(t, ctx) end |
#loadable_possible_types(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.
185 186 187 |
# File 'lib/graphql/schema/warden.rb', line 185 def loadable_possible_types(t, ctx) @warden.loadable_possible_types(t, ctx) end |
#mutation_root ⇒ 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.
149 150 151 |
# File 'lib/graphql/schema/warden.rb', line 149 def mutation_root @warden.root_type_for_operation("mutation") end |
#possible_types(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.
165 166 167 |
# File 'lib/graphql/schema/warden.rb', line 165 def possible_types(type) @warden.possible_types(type) end |
#query_root ⇒ 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.
145 146 147 |
# File 'lib/graphql/schema/warden.rb', line 145 def query_root @warden.root_type_for_operation("query") 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.
189 190 191 |
# File 'lib/graphql/schema/warden.rb', line 189 def reachable_type?(type_name) !!@warden.reachable_type?(type_name) end |
#subscription_root ⇒ 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.
153 154 155 |
# File 'lib/graphql/schema/warden.rb', line 153 def subscription_root @warden.root_type_for_operation("subscription") end |
#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.
133 134 135 |
# File 'lib/graphql/schema/warden.rb', line 133 def type(name) @warden.get_type(name) 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.
193 194 195 |
# File 'lib/graphql/schema/warden.rb', line 193 def visible_enum_value?(enum_value, ctx = nil) @warden.visible_enum_value?(enum_value, ctx) end |