Page Contents

Home > @loopback/context-explorer > ContextGraph

ContextGraph class

A graph for context hierarchy

Signature:

export declare class ContextGraph 

Constructors

Constructor Modifiers Description

(constructor)(ctx, options)

Constructs a new instance of the ContextGraph class

Methods

Method Modifiers Description

build()

Build a direct graph

render()

Render the context graph in graphviz dot format

renderBinding(parent, { binding, id }, input)

protected

Render a binding object

renderConfig(parent, { binding, level, id }, input)

protected

Create an edge for a binding to its configuration