MCPcopy Create free account
hub / github.com/codemix/graph / select

Method select

packages/graph/src/Traversals.ts:1080–1092  ·  view source on GitHub ↗

* Select the labeled elements in the path * @param pathLabels The labels to select.

(...pathLabels: TPathLabels)

Source from the content-addressed store, hash-verified

1078 * @param pathLabels The labels to select.
1079 */
1080 public select<
1081 const TPathLabels extends readonly (string & GetTraversalPathLabelModifiers<TPath>)[],
1082 >(...pathLabels: TPathLabels) {
1083 return new ValueTraversal<TSchema, ResolveTraversalPathLabelModifiers<TPath, TPathLabels>>(
1084 this.graph,
1085 [
1086 ...this.steps,
1087 new SelectStep({
1088 pathLabels,
1089 }),
1090 ],
1091 );
1092 }
1093
1094 /**
1095 * Get the values of the elements in the traversal.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected