How can I return all properties for a node using Cypher?

前端 未结 6 1911
梦谈多话
梦谈多话 2020-12-15 17:23

I understand it is possible to use the wildcard (*) symbol to return all references in a Cypher query, such as:

MATCH p:Product WHERE p.price=\'1950\' RETURN         


        
6条回答
  •  渐次进展
    2020-12-15 18:11

    You can use the 'as' clause and identify each property and what you want the column to be named. You will have to identify each property you want returned individually though.

    ex:

    MATCH p.product where WHERE p.price='1950' RETURN p.price as price, p.title as title, p.whatever, as anythingYouWant
    

提交回复
热议问题