OK. It used to be an attribute of the individual rows as well. That went
away.

That's what I'd been using.



On 08/16/2015 01:38 AM, Nigel Small wrote:
> The *RecordList* returned from *cypher.execute* has a *columns*
> attribute that contains this information:
>
> >>> rl = graph.cypher.execute("MERGE (a:Person) RETURN a")
> >>> rl.columns
> ('a',)
>
> It looks like this has not been included in the docs though for some
> reason so I'll get that added in.
>
> Nigel
>
> On 14 August 2015 at 20:36, Alan Robertson <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Hi Nigel,
>
>     There is an issue what has caused me grief nearly every release
>     you've put out.
>
>     When one issues a cypher stream query, there is some kind of an
>     object which you return which has rows and columns. Its name has
>     changed from time to time, and its structure has changed from time
>     to time.
>
>     But there is one thing which I need and which you have never
>     provided in a way that works from release to release. As a result,
>     I've had to do delve into your source code and create a series of
>     hacks to do this for me.
>
>     I need to know (introspect) the names of the columns in the return
>     result from the query. This is a very reasonable thing to want to
>     know. I think in the 2.6 releases you called it "columns". Now, it
>     appears that the only way to get the list of columns (labels,
>     whatever) from the result of a query is to use this expression:
>             row.__producer__.columns
>
>     Pylint objects to my doing this, as it should. And I object to
>     having to do this as well. Because this is at least the 3rd
>     iteration of how one goes about getting the list of columns from
>     the result of a Cypher query.
>
>     Since I'm building an API on top of your API -- without parsing
>     and understanding Cypher (which has even *more* pitfalls), of
>     knowing what columns are going to come back from the query.  So, I
>     need to introspect the results of the Cypher return result.
>
>     *Could you have mercy on me and provide a stable and documented
>     interface for returning the names of the columns from the result
>     of a Cypher query?*
>
>         Thanks!
>
>
>     -- 
>
>     Alan Robertson / CTO
>     [email protected]
>     <mailto:[email protected]>/ +1 303.947.7999
>     <tel:%2B1%20303.947.7999>
>
>     Assimilation Systems Limited
>     http://AssimilationSystems.com
>
>     Twitter <https://twitter.com/ossalanr> Linkedin
>     <https://www.linkedin.com/in/alanr> skype
>     <https://htmlsig.com/skype?username=alanr_unix.sh>
>
>


-- 

Alan Robertson / CTO
[email protected] <mailto:[email protected]>/ +1
303.947.7999

Assimilation Systems Limited
http://AssimilationSystems.com

Twitter <https://twitter.com/ossalanr> Linkedin
<https://www.linkedin.com/in/alanr> skype
<https://htmlsig.com/skype?username=alanr_unix.sh>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to