Overload project by list of nodes and edges#2611
Conversation
Tracking
Standard development
CI Testing Labels
Documentation checklist
|
5839e55 to
5d269bb
Compare
f8c7aac to
6f5763c
Compare
`project()` is overloaded to project a subgraph from a list of nodes and a list of edges. Any duplicates or nulls in these lists are ignored, as are any edges whose `From` or `To` node is not in the node list. The following two statements produce identical results: ```cypher MATCH p=(x:Person)-(r)-(y:Person) RETURN project(p) ``` ```cypher MATCH (x:Person)-(r)-(y:Person) RETURN project([x, y], [r]) ```
(Bundled here because one of the use cases for `project()` involves using `collect()`ed nodes and edges being appended.)
bf48cc3 to
2c3f50d
Compare
- `Graph.Expand` behaviour is changed to throw an error when called with any edges whose incident nodes are missing from the projection. - Updated gql_behave tests to check for failure when nodes are missing.
This reverts the public facing name of the `arg1` and `arg2` aggregation parameters, instead referring to them as they were before, i.e.: - `key`, `value` in the case of `map(,)` - `value` otherwise And for the new function: - `nodes`, `relationships` in the case of `project(,)`
|
`project()` is overloaded to project a subgraph from a list of nodes and a list of edges. Any duplicates or nulls in these lists are ignored, as are any edges whose `From` or `To` node is not in the node list. The following two statements produce identical results: ```cypher MATCH p=(x:Person)-(r)-(y:Person) RETURN project(p) ``` ```cypher MATCH (x:Person)-(r)-(y:Person) RETURN project([x, y], [r]) ```



project()is overloaded to project a subgraph from a list of nodes anda list of edges. Any duplicates or nulls in these lists are ignored, as
are any edges whose
FromorTonode is not in the node list.The following two statements produce identical results: