class GraphQL::Schema::TypeMembership

TODO: Not yet implemented for interfaces.
it is a member.
This class joins an object type to an abstract type (interface or union) of which

def initialize(abstract_type, object_type, **options)

Parameters:
  • options (Hash) -- Any options passed to `.possible_types` or `.implements`
  • object_type (Class) --
  • abstract_type (Class, Module) --
def initialize(abstract_type, object_type, **options)
  @abstract_type = abstract_type
  @object_type = object_type
  @options = options
end

def visible?(_ctx)

Returns:
  • (Boolean) - if false, {#object_type} will be treated as _not_ a member of {#abstract_type}
def visible?(_ctx)
  true
end