Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Cypher: Collect of Collect with strange results #355

Closed
freeeve opened this Issue Dec 9, 2012 · 6 comments

Comments

Projects
None yet
5 participants
Contributor

freeeve commented Dec 9, 2012

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?

Contributor

peterneubauer commented Dec 10, 2012

Is this a REST or cypher issue?

Contributor

freeeve commented Dec 10, 2012

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

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?

Owner

systay commented Jan 8, 2013

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

Member

jexp commented Jan 8, 2013

@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.

Hi,

I can't split the data with ruby function because I have comma in the value :(

I wonder who can fix the REST to return it as should?!

נשלח מה-iPhone שלי

ב-8 בינו 2013, בשעה 22:16, Michael Hunger notifications@github.com כתב/ה:

@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.


Reply to this email directly or view it on GitHub.

systay added a commit to systay/neo4j that referenced this issue Jan 11, 2013

@systay systay closed this in 5350ef6 Jan 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment