Skip to content
Snippets Groups Projects
Base.feature 912 B
Newer Older
Feature: Basic match

  Scenario: one step
  Given a graph with space named "nba"
  When executing query:
    """
    MATCH (v:player)
    WHERE v.age >= 38 AND v.age < 45
    RETURN v.name AS Name, v.age AS Age
    """
  Then the result should be, in any order:
    | Name            | Age |
    | 'Paul Gasol'    |  38 |
    | 'Kobe Bryant'   |  40 |
    | 'Vince Carter'  |  42 |
    | 'Tim Duncan'    |  42 |
    | 'Yao Ming'      |  38 |
    | 'Dirk Nowitzki' |  40 |
    | 'Manu Ginobili' |  41 |
    | 'Ray Allen'     |  43 |
    | 'David West'    |  38 |
    | 'Tracy McGrady' |  39 |
  And no side effects
  When executing query:
    """
    MATCH (v:player {age: 29})
    RETURN v.name AS Name
    """
  Then the result should be, in any order:
    | Name               |
    | 'James Harden'     |
    | 'Jonathon Simmons' |
    | 'Klay Thompson'    |
    | 'Dejounte Murray'  |
  And no side effects