On 10 Feb 2011, at 12:11, Michael Hunger wrote:

> so for your example it would look like:
> 
>> curl -Haccept:application/json -HContent-Type:application/json -X POST -d 
>> '"http://localhost:7474/db/data/node/123";'http://localhost:7474/db/data/index/node/nodes/name/New%20York
> 
> Sorry, I thought someone updated the wiki, we had the discussion before. Will 
> do it now.

Cheers.. but wouldn't it be...

curl -Haccept:application/json -HContent-Type:application/json -X POST -d 
'"http://localhost:7474/db/data/node/123";'http://localhost:7474/db/data/index/node/cities/name/New%20York

... if my index name was "cities"?

I'm slightly unsure why I'd have to specify /name/ too... something that in the 
python api I don't do to add an item I would just...

cities[ "New York" ] = new_york_node

I don't mind giving an index value a "name" but just want to be sure I'm doing 
it right...

thanks again

Tom














_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to