npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@seneca/graph

v0.5.0

Published

A Seneca plugin that provides basic graph operations.

Downloads

3

Readme

seneca-graph

Npm Travis Coveralls

A Seneca plugin that provides basic graph operations.

Install

$ npm install seneca-graph

Action Patterns

Action Descriptions

« add:rel,role:graph »

Add a directed relation between two nodes in a given graph.

Examples

  • add:rel,role:graph,graph:number,rel:lessthan,add:rel,from:<from-id>,to:<to-id>
    • Idempotently add a pair of nodes to number graph connected by directed relation lessthan with from-id and to-id referencing external entity identifiers as per graph definition in options.

Parameters

  • graph : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { presence: 'required', description: 'The name of the graph.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • rel : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { presence: 'required', description: 'The name of the relation.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • from : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { presence: 'required', description: 'From-side entity identifier.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • to : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { presence: 'required', description: 'To-side entity identifier.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }

Replies With

{
  from: '_from_ parameter, as provided',
  to: '_to_ parameter, as provided',
  rel: '_rel_ parameter, as provided',
  graph: '_graph_ parameter, as provided',
  node: {
    f: 'from-side entity identifier',
    t: 'to-side entity identifier',
    r: 'relation name',
    id: 'internal graph node identifier'
  }
}

« list:rel,role:graph »

List nodes connected by a given relation.

Examples

  • list:rel,role:graph,graph:number,rel:lessthan,list:rel

    • List all nodes in number graph connected by directed relation lessthan
  • list:rel,role:graph,graph:number,rel:lessthan,list:rel,from:<from-id>

    • List all nodes in number graph connected by directed relation lessthan with given from-id
  • list:rel,role:graph,graph:number,rel:lessthan,list:rel,to:<to-id>

    • List all nodes in number graph connected by directed relation lessthan with given to-id
  • list:rel,role:graph,graph:number,rel:lessthan,list:rel,to:<to-id>,entity:from

    • List all nodes in number graph connected by directed relation lessthan with given to-id, loading and including referenced from-side entities
  • list:rel,role:graph,graph:number,rel:lessthan,list:rel,entity:to

    • List all nodes in number graph connected by directed relation lessthan, loading and including referenced to-side entities

Parameters

  • graph : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { presence: 'required', description: 'The name of the graph.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • rel : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { presence: 'required', description: 'The name of the relation.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • from : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { description: 'From-side entity identifier.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • to : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { description: 'To-side entity identifier.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • entity : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: { _values: Set { 'from', 'to', 'both' }, _refs: Set {}, _lowercase: Map { 'from' => 'from', 'to' => 'to', 'both' => 'both' }, _override: false }, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { only: true, description: 'Entity side to load. Values: from, to, both.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }

Replies With

{
  from: '_from_ parameter, as provided',
  to: '_to_ parameter, as provided',
  rel: '_rel_ parameter, as provided',
  graph: '_graph_ parameter, as provided',
  list: [
    {
      f: 'from-side entity identifier',
      t: 'to-side entity identifier',
      r: 'relation name',
      id: 'internal graph node identifier',
      fe: 'from-side entity',
      te: 'to-side entity'
    },
    '...'
  ]
}

« role:graph,tree:rel »

Load tree of nodes connected by given relation.

Examples

  • role:graph,tree:rel,graph:number,rel:lessthan,from:<from-id>

    • Load tree of nodes from number graph connected by directed relation lessthan with from-id nodes at first level, to default depth of 1.
  • role:graph,tree:rel,graph:number,rel:lessthan,from:<from-id>,depth:2,entity:to

    • Load tree of nodes from number graph connected by directed relation lessthan with from-id nodes at first level, to depth 2, loading and returning referenced to-side entities.

Parameters

  • graph : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { presence: 'required', description: 'The name of the graph.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • rel : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { presence: 'required', description: 'The name of the relation.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • from : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { description: 'From-side entity identifier.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • to : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { description: 'To-side entity identifier.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }
  • depth : { type: 'number', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: null, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { default: 1, description: 'Depth of graph to traverse.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null }, '$_super': {} }
  • entity : { type: 'string', '$_root': { _types: Set { 'alternatives', 'any', 'array', 'boolean', 'date', 'function', 'link', 'number', 'object', 'string', 'symbol', 'binary' }, alternatives: [Function], any: [Function], array: [Function], boolean: [Function], date: [Function], function: [Function], link: [Function], number: [Function], object: [Function], string: [Function], symbol: [Function], binary: [Function], allow: [Function], custom: [Function], disallow: [Function], equal: [Function], exist: [Function], forbidden: [Function], invalid: [Function], not: [Function], only: [Function], optional: [Function], options: [Function], prefs: [Function], preferences: [Function], required: [Function], strip: [Function], valid: [Function], when: [Function], ValidationError: [Function: Error], version: '17.1.0', cache: { provision: [Function: provision] }, assert: [Function: assert], attempt: [Function: attempt], build: [Function: build], checkPreferences: [Function: checkPreferences], compile: [Function: compile], defaults: [Function: defaults], expression: [Function: expression], extend: [Function: extend], isError: [Function: isError], isExpression: [Function: isTemplate], isRef: [Function], isSchema: [Function], in: [Function: in], override: Symbol(override), ref: [Function: ref], types: [Function: types], alt: [Function], bool: [Function], func: [Function], x: [Function: expression], trace: [Function: trace], untrace: [Function], [Symbol(@hapi/lab/coverage/initialize)]: [Function: trace] }, '$_temp': { ruleset: false, whens: {} }, _ids: { _byId: Map {}, _byKey: Map {}, _schemaChain: false }, _preferences: null, _valids: { _values: Set { 'from', 'to', 'both' }, _refs: Set {}, _lowercase: Map { 'from' => 'from', 'to' => 'to', 'both' => 'both' }, _override: false }, _invalids: null, _rules: [], _singleRules: Map {}, _refs: { refs: [] }, _flags: { only: true, description: 'Entity side to load. Values: from, to, both.' }, _cache: null, '$_terms': { alterations: null, examples: null, externals: null, metas: [], notes: [], shared: null, tags: [], whens: null, replacements: null }, '$_super': {} }

Replies With

{
  from: '_from_ parameter, as provided',
  to: '_to_ parameter, as provided',
  rel: '_rel_ parameter, as provided',
  graph: '_graph_ parameter, as provided',
  c: [
    {
      f: 'from-side entity identifier',
      t: 'to-side entity identifier',
      r: 'relation name',
      id: 'internal graph node identifier',
      fe: 'from-side entity',
      te: 'to-side entity',
      c: [
        '{ ...connected-nodes... }'
      ]
    },
    '...connected-nodes...'
  ]
}