Skip to content

Docs Feedback modules/ROOT/pages/cypher.adoc (ref: main)--Typo in Cypher example — undefined variable p used instead of sally #499

@lostithi

Description

@lostithi

https://neo4j.com/docs/getting-started/cypher/

In the "Patterns in Cypher" part of the chapter Cypher , one of the cypher code, to retieve the pattern of initially created graph ,the following example is provided:

MATCH (sally:Person {name: "Sally"})-[r:LIKES]->(t:Technology {type: "Graphs"})
RETURN p,r,t

Here while returning the output, it must be calling for the variable sally, as the variable p is not defined anywhere.
he correct version should use the variable sally, as defined in the pattern:

MATCH (sally:Person {name: "Sally"})-[r:LIKES]->(t:Technology {type: "Graphs"})
RETURN sally, r, t

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions