1
我試過以下查詢在密碼。Neo4j - 發生無效的查詢錯誤
START other=node(*)
WHERE other.FirstName =~ "(?i)dh.*" AND other.UserID <> 1
WITH other, me=node:node_auto_index(UserID = '1')
MATCH me-[myR:friends]-(x)
RETURN other.UserID, other.UserName, other.FirstName, other.LastName, other.ImagePath
// myR.ApprovalStatus, COUNT(distinct pMutualFriends) AS mutualFriends
//ORDER BY mutualFriends DESC
LIMIT 100;
但它給了我錯誤。
These columns can't be listen in the WITH statement without renaming: me=node
那麼,這個查詢有什麼問題?
謝謝@ wes-freeman,請看看我的另一個問題。鏈接:http://stackoverflow.com/questions/17917884/join-result-set/17933098?noredirect=1#17933098 –