Method: GraphQL::Schema::Warden#types
- Defined in:
- lib/graphql/schema/warden.rb
#types ⇒ Hash<String, GraphQL::BaseType>
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 Visible types in the schema.
221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/graphql/schema/warden.rb', line 221 def types @types ||= begin vis_types = {} @schema.types(@context).each do |n, t| if visible_and_reachable_type?(t) vis_types[n] = t end end vis_types end end |