Hey, FWIW, we ended up needing this for actual queries in our app, not just the console, so we ended up adding a UUID property to every node in our graph, just so we can efficiently query collections of node pairs (where nodes may be duplicated many times across pairs). We (auto-)index this UUID property so we can then do a second lookup for the nodes' data.
If Cypher supported IDs or URLs natively, that would have made this a bit more convenient. =) Aseem On Wed, Aug 24, 2011 at 6:41 PM, Aseem Kishore <[email protected]>wrote: > I was asking really only for the console. I don't see myself needing to use > the ID programmatically -- except it might be a minor optimization to be > able to get only node URLs if I already have node data, and I just want to > compare the output of this query with the nodes I already have. > > For the console, the only thing is that nodes w/ many properties (and > possibly long values, e.g. descriptions) totally litter the console, making > output impossible to read or make sense of. Shortening the results to just > IDs (along with selected properties) would be convenient in some cases. In > many cases, just the properties aren't identifying enough. > > Hope this helps, and thanks for the consideration! > > Aseem > > > On Wed, Aug 24, 2011 at 5:58 PM, Andres Taylor < > [email protected]> wrote: > >> Hi Aseem, >> >> For various reasons, we've (so far) decided against allowing the id to be >> something you can output. Could you tell me a bit more about why you would >> like to return just the id? >> >> It's not hard to do, but it would make future parts of Cypher harder to >> do. >> If there are valid use cases we've missed, we'll reconsider. >> >> Regards, >> >> Andrés >> >> On Wed, Aug 24, 2011 at 5:39 PM, Aseem Kishore <[email protected] >> >wrote: >> >> > Hey guys, >> > >> > Is there any way I can have Cypher return/print node IDs? If I specify >> for >> > it to return a node, it returns/prints all data about that node, which >> can >> > be excessive. But the problem is, the node's ID isn't a property on that >> > node. I've tried both node~ID and node~SELF, like rel~TYPE, but neither >> > works. >> > >> > If this isn't possible today, consider it a feature request. =) Thanks! >> > >> > Aseem >> > _______________________________________________ >> > Neo4j mailing list >> > [email protected] >> > https://lists.neo4j.org/mailman/listinfo/user >> > >> _______________________________________________ >> Neo4j mailing list >> [email protected] >> https://lists.neo4j.org/mailman/listinfo/user >> > > _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

