| 13 | #include "../query_ctx.h" |
| 14 | |
| 15 | static inline EdgeCreateCtx _NewEdgeCreateCtx |
| 16 | ( |
| 17 | GraphContext *gc, |
| 18 | const QGEdge *e, |
| 19 | const cypher_astnode_t *edge |
| 20 | ) { |
| 21 | const cypher_astnode_t *props = cypher_ast_rel_pattern_get_properties(edge); |
| 22 | |
| 23 | EdgeCreateCtx new_edge = { .alias = e->alias, |
| 24 | .relation = e->reltypes[0], |
| 25 | .reltypeId = e->reltypeIDs[0], |
| 26 | .properties = PropertyMap_New(props), |
| 27 | .src = e->src->alias, |
| 28 | .dest = e->dest->alias |
| 29 | }; |
| 30 | return new_edge; |
| 31 | } |
| 32 | |
| 33 | static inline NodeCreateCtx _NewNodeCreateCtx |
| 34 | ( |
no test coverage detected