or if you want one row for each relationship, simply
match (n:criteria)-[r]-() return n,r
then use (NeoNode, NeoRelationship) to map the rows. HTH.
[error] Server access Error: Operation timed out url=http://repo.anormcypher.org/org/anormcypher/anormcypher_2.11/0.9.0/anormcypher_2.11-0.9.0.pom
eve-macbook.local:~ dig repo.anormcypher.org
; <<>> DiG 9.8.3-P1 <<>> repo.anormcypher.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48673
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;repo.anormcypher.org. IN A
;; ANSWER SECTION:
repo.anormcypher.org. 86400 IN A 50.116.56.111
;; Query time: 63 msec
;; SERVER: 68.105.28.11#53(68.105.28.11)
;; WHEN: Tue May 17 05:59:14 2016
;; MSG SIZE rcvd: 54
Is it possible to use the parser api directly on any nodes that were returned? i.e., can I do something like this:
Cypher("MATCH (u: User) RETURN u").single(str("u.id"))
The query above results in an exception: "u.id not found, available columns : u"
I tried using "RETURN u.*" but received a cypher syntax exception "Invalid input '*' "
I'm really struggling to get data out of my cypher query - I'm collecting paths .
Here is the query match p=(n:node)-[r:PERMISSION]->(t:node), (o:node{id:$id})-[:PARENT*0..]-(t) return COLLECT(p)
. This returns [[{id: 3}, {}, {id: 1}], [{id:6}, {}, {id: 2}]]
- I got a seq of cypher results row, but I cannot for the life of me get the data out because it keeps failing the typecheck.
Error:(24, 33) could not find implicit value for parameter c: org.anormcypher.Column[_]
List[List[_]]
CypherResultRow('COLLECT(p)':List(List(Map(id -> 3), Map(), Map(id -> 1)), List(Map(id -> 6), Map(), Map(id -> 2))) as String)
Hi everyone, I want to know how to write a parser for data which has type of Map[string,Map[string,string]] like below:
val parser: Map[string,Map[string,string]] =...
val result: List[Map[string,Map[string,string]] ] = SQL"SELECT * FROM table".as(parser.*)
//for three item has relation like: ( item1 -> (item2 -> item3))
thanks.