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

Function convertPropertyMap

packages/graph/src/astToSteps.ts:581–589  ·  view source on GitHub ↗

* Convert a property map, handling nested maps and parameter references. * Transforms NestedMap AST nodes into plain objects.

(props: Record<string, unknown> | undefined)

Source from the content-addressed store, hash-verified

579 * Transforms NestedMap AST nodes into plain objects.
580 */
581function convertPropertyMap(props: Record<string, unknown> | undefined): Record<string, unknown> {
582 if (!props) return {};
583
584 const result: Record<string, unknown> = {};
585 for (const [key, value] of Object.entries(props)) {
586 result[key] = convertNestedPropertyValue(value);
587 }
588 return result;
589}
590
591/**
592 * Convert a single property value, handling NestedMap, ListLiteral, and ParameterRef.

Callers 5

convertSetMapValueFunction · 0.85
convertCreateClauseFunction · 0.85
convertMergeClauseFunction · 0.85
convertSetValueFunction · 0.85

Calls 1

Tested by

no test coverage detected