Method: GraphQL::Schema::Warden#interfaces
- Defined in:
- lib/graphql/schema/warden.rb
#interfaces(obj_type) ⇒ Array<GraphQL::InterfaceType>
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 interfaces implemented by obj_type.
350 351 352 353 354 355 356 357 358 359 |
# File 'lib/graphql/schema/warden.rb', line 350 def interfaces(obj_type) @visible_interfaces ||= read_through { |t| ints = t.interfaces(@context) if !ints.empty? ints.select! { |i| visible_type?(i) } end ints } @visible_interfaces[obj_type] end |