Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Cypher: Collect of Collect with strange results #355

Closed
wfreeman opened this Issue · 6 comments

5 participants

@wfreeman

You need some sample data to be able to see anything, but the matrix example works.

curl -X POST -H Accept:application/json -H Content-Type:application/json -v http://localhost:7474/db/data/cypher -d '{"query":"start n=node(*) match n--m--fof with n, m, collect(fof) as fof return n, collect(m), collect(fof);", "params":{}}'

The question is, why are some things coming back as "List(...)"--did this always work this way?

@peterneubauer

Is this a REST or cypher issue?

@wfreeman

List(...,...) is scala print syntax, so it might be from Cypher. Not entirely sure though.

@meitalfed

Hi. I'm working with ruby, I get the result as string and not as array, so I cannot do with it anything. any news?

@systay
Owner

This is a REST issue. Collections of collections work well in Cypher: http://console.neo4j.org/r/t5upn0

@jexp
Collaborator

@wwm Meital, to work around the issue for now, you can use ruby string functions to split up the data, but you're right it should be handled correctly in the server response.

@meitalfed
@systay systay referenced this issue from a commit in systay/neo4j
@systay systay Fixes #355 - Collections in collections are still Scala collections i…
…nstead of Java collections
a224ba9
@systay systay closed this in 5350ef6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.