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

Function convertUnwindClause

packages/graph/src/astToSteps.ts:907–913  ·  view source on GitHub ↗

* Convert an UNWIND clause into an UnwindStep.

(unwindClause: UnwindClause)

Source from the content-addressed store, hash-verified

905 * Convert an UNWIND clause into an UnwindStep.
906 */
907function convertUnwindClause(unwindClause: UnwindClause): UnwindStep {
908 const expression = convertUnwindExpression(unwindClause.expression);
909 return new UnwindStep({
910 expression,
911 alias: unwindClause.alias,
912 });
913}
914
915/**
916 * Convert an UNWIND expression AST node to a StepUnwindExpression.

Callers 2

processQuerySegmentsFunction · 0.85
processLegacyQueryFunction · 0.85

Calls 1

convertUnwindExpressionFunction · 0.85

Tested by

no test coverage detected