Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When query returns a collect() column, represent it as something easily convertable to array #176

Open
rulatir opened this issue Dec 21, 2015 · 2 comments

Comments

@rulatir
Copy link

rulatir commented Dec 21, 2015

When a query returns a collect() column, the collection is (surprisingly!) returned as an instance of Everyman\Neo4j\Query\Row. This class seems neither convertible to an array without running a loop over it, nor does it work with functions like array_slice(). This complicates writing views.

Please add a toArray() method to Row.

@marwanzak
Copy link

+1

@nebkam
Copy link

nebkam commented Feb 21, 2017

I think it's returned as an Iterator so I've managed to turn it into an array using iterator_to_array without foreach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants