Feature: setup steps graph tables
@readOnly
Scenario: given-graph-nodes-and-relationships
Given an empty graph
Given graph nodes:
| node:1 | Person | name=string:Alice;age=int:30 |
| node:2 | Person | name=string:Bob;age=int:40 |
| node:3 | Company | name=string:Acme |
Given graph relationships:
| rel:10 | node:1 | node:2 | KNOWS |
| rel:11 | node:2 | node:3 | WORKS_AT |
When executing query:
"""
MATCH (n:Person)-[:KNOWS]->(m:Person) RETURN n.name AS name ORDER BY name ASC
"""
Then the result should be, in order:
| string:Alice |
And no side effects