Closed dfgit closed 5 years ago
Fixed with last commit.
library(neo4r)
con <- neo4j_api$new(url = "http://localhost:7474",
user = "neo4j", password = "neo4j")
"MATCH (people:Person)-[relatedTo]-(:Movie {title: 'Cloud Atlas'}) RETURN people.name, Type(relatedTo), relatedTo" %>%
call_neo4j(con, type = 'row')
#> $people.name
#> # A tibble: 20 x 1
#> value
#> <chr>
#> 1 Jessica Thompson
#> 2 Stefan Arndt
#> 3 Lana Wachowski
#> 4 David Mitchell
#> 5 Tom Tykwer
#> 6 Lilly Wachowski
#> 7 Halle Berry
#> 8 Jim Broadbent
#> 9 Tom Hanks
#> 10 Hugo Weaving
#> 11 Lana Wachowski
#> 12 Lilly Wachowski
#> 13 Stefan Arndt
#> 14 David Mitchell
#> 15 Jessica Thompson
#> 16 Tom Tykwer
#> 17 Jim Broadbent
#> 18 Halle Berry
#> 19 Hugo Weaving
#> 20 Tom Hanks
#>
#> $`Type(relatedTo)`
#> # A tibble: 20 x 1
#> value
#> <chr>
#> 1 REVIEWED
#> 2 PRODUCED
#> 3 DIRECTED
#> 4 WROTE
#> 5 DIRECTED
#> 6 DIRECTED
#> 7 ACTED_IN
#> 8 ACTED_IN
#> 9 ACTED_IN
#> 10 ACTED_IN
#> 11 DIRECTED
#> 12 DIRECTED
#> 13 PRODUCED
#> 14 WROTE
#> 15 REVIEWED
#> 16 DIRECTED
#> 17 ACTED_IN
#> 18 ACTED_IN
#> 19 ACTED_IN
#> 20 ACTED_IN
#>
#> $relatedTo
#> # A tibble: 36 x 3
#> summary rating roles
#> <chr> <int> <list>
#> 1 An amazing journey 95 <NULL>
#> 2 <NA> NA <chr [1]>
#> 3 <NA> NA <chr [1]>
#> 4 <NA> NA <chr [1]>
#> 5 <NA> NA <chr [1]>
#> 6 <NA> NA <chr [1]>
#> 7 <NA> NA <chr [1]>
#> 8 <NA> NA <chr [1]>
#> 9 <NA> NA <chr [1]>
#> 10 <NA> NA <chr [1]>
#> # … with 26 more rows
#>
#> attr(,"class")
#> [1] "neo" "neo" "list"
Created on 2019-03-03 by the reprex package (v0.2.1)
Working
I'm limited to using only the CRAN version of this package (0.1.1) where this error still persists. Is there a workaround for those who cannot install the newer versions from gitlab?
Seems to be tied to relationships with properties. Have other examples of same type of error that seem to be the same root cause
Should return
Instead get subscript out of bonds error
last_error
Traceback