MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _NewNodeCreateCtx

Function _NewNodeCreateCtx

src/ast/ast_build_op_contexts.c:33–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33static inline NodeCreateCtx _NewNodeCreateCtx
34(
35 GraphContext *gc,
36 const QGNode *n,
37 const cypher_astnode_t *ast_node
38) {
39 const cypher_astnode_t *ast_props = cypher_ast_node_pattern_get_properties(ast_node);
40
41 NodeCreateCtx new_node;
42 new_node.alias = n->alias;
43 new_node.properties = PropertyMap_New(ast_props);
44 array_clone(new_node.labels, n->labels);
45 array_clone(new_node.labelsId, n->labelsID);
46
47 return new_node;
48}
49
50// updates a single property or label
51static void _ConvertUpdateItem

Callers 1

AST_PreparePathCreationFunction · 0.85

Calls 1

PropertyMap_NewFunction · 0.85

Tested by

no test coverage detected