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

Method select

packages/graph/src/Traversals.ts:2217–2229  ·  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

2215 * @param pathLabels The labels to select.
2216 */
2217 public select<
2218 const TPathLabels extends readonly (string & GetTraversalPathLabelModifiers<TPath>)[],
2219 >(...pathLabels: TPathLabels) {
2220 return new ValueTraversal<TSchema, ResolveTraversalPathLabelModifiers<TPath, TPathLabels>>(
2221 this.graph,
2222 [
2223 ...this.steps,
2224 new SelectStep({
2225 pathLabels,
2226 }),
2227 ],
2228 );
2229 }
2230
2231 /**
2232 * Get the values of the elements in the traversal.

Calls

no outgoing calls

Tested by

no test coverage detected