class GraphQL::Schema::Visibility::Profile

def self.from_context(ctx, schema)

Returns:
  • (Schema::Visibility::Profile) -
def self.from_context(ctx, schema)
  if ctx.respond_to?(:types) && (types = ctx.types).is_a?(self)
    types
  else
    schema.visibility.profile_for(ctx)
  end
end