UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

75 lines (38 loc) 1.31 kB
--- lang: en title: 'API docs: context-explorer.contextgraph._constructor_' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/context-explorer permalink: /doc/en/lb4/apidocs.context-explorer.contextgraph._constructor_.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context-explorer](./context-explorer.md) &gt; [ContextGraph](./context-explorer.contextgraph.md) &gt; [(constructor)](./context-explorer.contextgraph._constructor_.md) ## ContextGraph.(constructor) Constructs a new instance of the `ContextGraph` class **Signature:** ```typescript constructor(ctx: JSONObject, options?: ContextGraphOptions); ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> ctx </td><td markdown="1"> [JSONObject](./context.jsonobject.md) </td><td markdown="1"> </td></tr> <tr><td markdown="1"> options </td><td markdown="1"> [ContextGraphOptions](./context-explorer.contextgraphoptions.md) </td><td markdown="1"> _(Optional)_ </td></tr> </tbody></table>